From c34479129ddc5c5517c534a5650af347fa3fc537 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 10 May 2014 12:15:25 +0000
Subject: we only use release versions, no point in checking .git


diff --git a/config/version b/config/version
index 6583ea3..4ec323e 100644
--- a/config/version
+++ b/config/version
@@ -19,14 +19,6 @@ patchlevel_verbose=
 
 case "$stat" in # $stat rewritten by config/settar ?
   *git-*) patchlevel_verbose="[ $stat ]";;
-  *) if test -d "$TOP/.git"; then
-       t=`git rev-list HEAD 2>/dev/null | wc -l` # ~ svn revision number
-       T=`git log -1 --pretty=format:%h` # commit hash
-       if test -z "$t"; then t=0; fi
-       vcsversion=$t-$T
-       status="$stat $vcsversion"
-       patchlevel_verbose="[ $status ]"
-     fi
 esac
 version=$VersionMajor.$VersionMinor
 pari_release="$version.$patch"
-- 
1.8.3.4


From 1ef615f242aa68b60b9ce3c4f23c0e628688c266 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 10 May 2014 12:44:58 +0000
Subject: Haiku support.


diff --git a/config/arch-osname b/config/arch-osname
index 5da1bc8..515bcfd 100755
--- a/config/arch-osname
+++ b/config/arch-osname
@@ -74,6 +74,8 @@ if test -n "$myuname"; then
             case $arch in i386-*) arch=i386;;esac;;
   aix)      arch=`uname -p`;
             case $arch in powerpc) arch=ppc;;esac;;
+  haiku)	arch=`uname -p`
+  		;;
   esac
 fi
 echo $arch-$osname
diff --git a/config/get_dlld b/config/get_dlld
index 2272aac..10632d5 100644
--- a/config/get_dlld
+++ b/config/get_dlld
@@ -9,7 +9,7 @@ DLSUFFIX=so
 soname=.$soname_num
 do_dll=yes
 case "$osname" in
-  gnu*|aix|osf1|solaris|linux|freebsd|netbsd)
+  gnu*|aix|osf1|solaris|linux|freebsd|netbsd|haiku)
     case $pari_release_verbose in
       *STABLE*)      sodest=.$version.$patch;; # released version
       *DEVELOPMENT*) sodest=.$patch.0.0;;      # unstable version
diff --git a/config/get_ld b/config/get_ld
index 9a8482d..ec7b9da 100644
--- a/config/get_ld
+++ b/config/get_ld
@@ -3,6 +3,7 @@
 _ld_list='LD LDFLAGS LIBS runpathprexix LDneedsWl LDused GNULDused'
 case "$osname" in
   darwin) LIBS= ;;
+  haiku) LIBS= ;;
   osf1)   LIBS='-lm -lots';;
   *)      LIBS=-lm;;
 esac
diff --git a/config/get_libc b/config/get_libc
index 513a983..1e42fdd 100644
--- a/config/get_libc
+++ b/config/get_libc
@@ -2,7 +2,7 @@
 exe=$osname-$arch-tmp$$
 _has_list=
 echo Looking in C lib for some symbols...
-extra_flags=-lm
+#extra_flags=-lm
 list=exp2; . ./look
 list=log2; . ./look
 extra_flags=
-- 
1.8.3.4

