Index: gap-4r6p5/configure
===================================================================
--- gap-4r6p5.orig/configure	2013-09-09 21:45:16.056166175 +0200
+++ gap-4r6p5/configure	2013-09-09 21:45:28.760351502 +0200
@@ -4073,7 +4073,7 @@
 fi
 
 
-gapdir=`pwd`
+gapdir=/usr/share/gap
 
 
 
Index: gap-4r6p5/configure.in
===================================================================
--- gap-4r6p5.orig/configure.in	2013-09-09 21:45:16.056166175 +0200
+++ gap-4r6p5/configure.in	2013-09-09 21:46:00.488813958 +0200
@@ -52,7 +52,7 @@
 AC_SUBST(BASECC)
 AC_PROG_MAKE_SET
 AC_SUBST(gapdir)
-gapdir=`pwd`
+gapdir=/usr/share/gap
 
 AC_ARG_VAR(CONFIGNAME,[Supply a (meaningful) name for the configuration you are building.
     This name will be appended to the architecture-dependent named 
