diff -up gmp-5.0.1/configure.in.pom gmp-5.0.1/configure.in --- gmp-5.0.1/configure.in.pom 2010-02-06 13:43:13.000000000 +0100 +++ gmp-5.0.1/configure.in 2010-05-24 13:36:37.000000000 +0200 @@ -1095,6 +1095,11 @@ case $host in ;; + s390x-*-*) + gcc_cflags="-g -O2 $fomit_frame_pointer" + path="s390x" + #extra_functions="udiv_w_sdiv" + ;; # IBM s/370 and similar [s3[6-9]0*-*-*]) gcc_cflags="$gcc_cflags $fomit_frame_pointer" diff -up gmp-5.0.1/mpn/s390/gmp-mparam.h.pom gmp-5.0.1/mpn/s390/gmp-mparam.h --- gmp-5.0.1/mpn/s390/gmp-mparam.h.pom 2010-02-06 13:43:14.000000000 +0100 +++ gmp-5.0.1/mpn/s390/gmp-mparam.h 2010-05-24 13:39:21.000000000 +0200 @@ -18,7 +18,8 @@ You should have received a copy of the G along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ -/* GMP_LIMB_BITS etc generated by configure */ +#define BITS_PER_MP_LIMB 32 +#define BYTES_PER_MP_LIMB 4 /* Generated by tuneup.c, 2001-12-03, gcc 2.95 */