$NetBSD: patch-ab,v 1.19 2007/04/30 12:03:06 adam Exp $

--- configure.orig	2007-04-17 23:20:09.000000000 +0200
+++ configure
@@ -29137,8 +29137,16 @@ if test "x$enable_altivec" = xyes; then
   { echo "$as_me:$LINENO: checking whether we can compile Altivec code" >&5
 echo $ECHO_N "checking whether we can compile Altivec code... $ECHO_C" >&6; }
 
+  gimp_save_CFLAGS=$CFLAGS
+  case `uname` in
+    Darwin)
+      CFLAGS="$CFLAGS -faltivec"
+      ;;
+    *)
+      ;;
+  esac
   cat >conftest.$ac_ext <<_ACEOF
-asm ("vand %v0, %v0, %v0");
+asm ("vand v0, v0, v0");
 _ACEOF
 rm -f conftest.$ac_objext
 if { (ac_try="$ac_compile"
@@ -29174,7 +29182,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 echo "${ECHO_T}no" >&6; }
     { echo "$as_me:$LINENO: WARNING: The assembler does not support the Altivec command set." >&5
 echo "$as_me: WARNING: The assembler does not support the Altivec command set." >&2;}
-
+    CFLAGS=$gimp_save_CFLAGS
 fi
 
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
@@ -35035,7 +35043,7 @@ fi
 
 gimpdatadir="$datadir/$PACKAGE/2.0"
 gimpplugindir="$libdir/$PACKAGE/2.0"
-gimpsysconfdir="$sysconfdir/$PACKAGE/2.0"
+gimpsysconfdir="$sysconfdir"
 
 
 
