sollya 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/extconf.rb ADDED
@@ -0,0 +1,21 @@
1
+ require 'mkmf'
2
+
3
+ unless have_library('gmp') then
4
+ abort "-----\nGMP is missing. Please install GMP (eg \'sudo apt install libgmp-dev\').\n-----"
5
+ end
6
+
7
+ unless have_library('mpfr') then
8
+ abort "-----\nMPFR is missing. Please install MPFR (eg \'sudo apt install libmpfr-dev\').\n-----"
9
+ end
10
+
11
+ unless have_library('mpfi') then
12
+ abort "-----\nMPFI is missing. Please install MPFI (eg \'sudo apt install libmpfi-dev\').\n-----"
13
+ end
14
+
15
+ unless have_library('sollya') then
16
+ abort "-----\nSollya is missing. Please install sollya (eg \'sudo apt install libsollya-dev\').\n-----"
17
+ end
18
+
19
+ create_makefile 'sollya/sollya'
20
+
21
+ #File.write('Makefile', File.read('Makefile').sub(/^V = 0$/, 'V = 1'))