CoinMP-build.diff 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. diff -ur CoinMP-1.8.4.orig/BuildTools/coin.m4 CoinMP-1.8.4/BuildTools/coin.m4
  2. --- CoinMP-1.8.4.orig/BuildTools/coin.m4 2016-10-25 07:09:40.000000000 -0700
  3. +++ CoinMP-1.8.4/BuildTools/coin.m4 2019-04-30 19:14:33.975417164 -0700
  4. @@ -148,6 +148,7 @@
  5. [AC_BEFORE([$0],[AC_COIN_PROG_CXX])dnl
  6. AC_BEFORE([$0],[AC_COIN_PROG_CC])dnl
  7. AC_BEFORE([$0],[AC_COIN_PROG_F77])dnl
  8. +AC_REQUIRE([AC_PROG_F77])
  9. AC_MSG_CHECKING([whether we want to compile in debug mode])
  10. @@ -277,6 +278,7 @@
  11. AC_DEFUN([AC_COIN_PROG_CXX],
  12. [AC_REQUIRE([AC_COIN_PROG_CC]) #Let's try if that overcomes configuration problem with VC++ 6.0
  13. AC_REQUIRE([AC_COIN_ENABLE_MSVC])
  14. +AC_REQUIRE([AC_PROG_CXX])
  15. AC_LANG_PUSH(C++)
  16. AC_ARG_VAR(CXXDEFS,[Additional -D flags to be used when compiling C++ code.])
  17. @@ -667,6 +669,7 @@
  18. AC_DEFUN([AC_COIN_PROG_CC],
  19. [AC_REQUIRE([AC_COIN_ENABLE_MSVC])
  20. +AC_REQUIRE([AC_PROG_CC])
  21. AC_LANG_PUSH(C)
  22. # For consistency, we set the C compiler to the same value of the C++
  23. @@ -936,6 +939,7 @@
  24. [AC_REQUIRE([AC_COIN_ENABLE_MSVC])
  25. AC_REQUIRE([AC_COIN_PROG_CC])
  26. AC_REQUIRE([AC_COIN_F77_COMPS])
  27. +AC_REQUIRE([AC_PROG_F77])
  28. AC_LANG_PUSH([Fortran 77])
  29. AC_ARG_VAR(ADD_FFLAGS,[Additional Fortran compiler options])
  30. @@ -1018,7 +1022,8 @@
  31. coin_dbg_fflags="-g -CA -CB -CS"
  32. # Check if -i_dynamic is necessary (for new glibc library)
  33. FFLAGS=
  34. - AC_TRY_LINK(,[ write(*,*) 'Hello world'],[],
  35. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],
  36. + [[ write(*,*) 'Hello world']])], [],
  37. [coin_add_fflags="-i_dynamic $coin_add_fflags"])
  38. ;;
  39. pgf77* | */pgf77* | pgf90* | */pgf90*)
  40. @@ -1060,7 +1065,8 @@
  41. if test -z "$coin_opt_fflags"; then
  42. # Try if -O option works if nothing else is set
  43. FFLAGS=-O
  44. - AC_TRY_LINK(,[ integer i], [coin_opt_fflags="-O"])
  45. + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ integer i]])],
  46. + [coin_opt_fflags="-O"], [])
  47. fi
  48. # if PM doesn't want the warning messages, take them out
  49. @@ -1095,11 +1101,13 @@
  50. # Try if FFLAGS works
  51. if test "$F77" != "unavailable" ; then
  52. - AC_TRY_LINK(,[ integer i],[],[FFLAGS=])
  53. + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ integer i]])],
  54. + [], [FFLAGS=])
  55. if test -z "$FFLAGS"; then
  56. AC_MSG_WARN([The flags FFLAGS="$FFLAGS" do not work. I will now just try '-O', but you might want to set FFLAGS manually.])
  57. FFLAGS='-O'
  58. - AC_TRY_LINK(,[ integer i],[],[FFLAGS=])
  59. + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ integer i]])],
  60. + [], [FFLAGS=])
  61. if test -z "$FFLAGS"; then
  62. AC_MSG_WARN([This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually.])
  63. fi
  64. @@ -1208,6 +1216,7 @@
  65. AC_DEFUN([AC_COIN_F77_WRAPPERS],
  66. [AC_BEFORE([AC_COIN_PROG_F77],[$0])dnl
  67. AC_REQUIRE([_AC_COIN_F77_LIBRARY_LDFLAGS])dnl
  68. +AC_REQUIRE([AC_PROG_F77])
  69. AC_LANG_PUSH([Fortran 77])
  70. AC_F77_WRAPPERS
  71. @@ -2120,6 +2129,7 @@
  72. AC_BEFORE([AC_COIN_PROG_CC],[$0])
  73. AC_BEFORE([AC_COIN_PROG_F77],[$0])
  74. AC_BEFORE([$0],[AC_COIN_FINALIZE])
  75. +AC_REQUIRE([AC_PROG_F77])
  76. coin_has_zlib=no
  77. @@ -2165,6 +2175,7 @@
  78. AC_BEFORE([AC_COIN_PROG_CC],[$0])
  79. AC_BEFORE([AC_COIN_PROG_F77],[$0])
  80. AC_BEFORE([$0],[AC_COIN_FINALIZE])
  81. +AC_REQUIRE([AC_PROG_F77])
  82. AC_ARG_ENABLE([bzlib],
  83. [AC_HELP_STRING([--disable-bzlib],[do not compile with compression library bzlib])],
  84. @@ -2209,6 +2220,7 @@
  85. AC_BEFORE([AC_COIN_PROG_CC],[$0])
  86. AC_BEFORE([AC_COIN_PROG_F77],[$0])
  87. AC_BEFORE([$0],[AC_COIN_FINALIZE])
  88. +AC_REQUIRE([AC_PROG_F77])
  89. coin_has_readline=no
  90. if test $coin_enable_gnu = yes; then
  91. @@ -2256,6 +2268,7 @@
  92. AC_BEFORE([AC_COIN_PROG_CC],[$0])
  93. AC_BEFORE([AC_COIN_PROG_F77],[$0])
  94. AC_BEFORE([$0],[AC_COIN_FINALIZE])
  95. +AC_REQUIRE([AC_PROG_F77])
  96. AC_ARG_ENABLE([gmp],
  97. [AC_HELP_STRING([--disable-gmp],[do not compile with GNU multiple precision library])],
  98. diff -ur CoinMP-1.8.4.orig/Cbc/Makefile.am CoinMP-1.8.4/Cbc/Makefile.am
  99. --- CoinMP-1.8.4.orig/Cbc/Makefile.am 2015-02-07 11:56:19.000000000 -0800
  100. +++ CoinMP-1.8.4/Cbc/Makefile.am 2019-04-30 19:12:21.149131482 -0700
  101. @@ -158,4 +158,4 @@
  102. # Files that are generated and should be cleaned with make distclean
  103. DISTCLEANFILES =
  104. -include BuildTools/Makemain.inc
  105. +include ../BuildTools/Makemain.inc
  106. diff -ur CoinMP-1.8.4.orig/Cbc/configure.ac CoinMP-1.8.4/Cbc/configure.ac
  107. --- CoinMP-1.8.4.orig/Cbc/configure.ac 2019-02-22 16:16:38.000000000 -0800
  108. +++ CoinMP-1.8.4/Cbc/configure.ac 2019-04-30 19:28:23.439447182 -0700
  109. @@ -20,6 +20,8 @@
  110. This file is part of the open source package Coin which is distributed
  111. under the Eclipse Public License.])
  112. +m4_include([../BuildTools/coin.m4])
  113. +
  114. # List one file in the package so that the configure script can test
  115. # whether the package is actually there
  116. AC_CONFIG_SRCDIR(src/CbcTree.hpp)
  117. @@ -52,6 +54,8 @@
  118. # Initialize automake and libtool
  119. AC_COIN_INIT_AUTO_TOOLS
  120. +LT_INIT
  121. +
  122. #############################################################################
  123. # COIN-OR components #
  124. #############################################################################
  125. diff -ur CoinMP-1.8.4.orig/Cgl/Makefile.am CoinMP-1.8.4/Cgl/Makefile.am
  126. --- CoinMP-1.8.4.orig/Cgl/Makefile.am 2015-02-07 11:56:21.000000000 -0800
  127. +++ CoinMP-1.8.4/Cgl/Makefile.am 2019-04-30 19:12:21.149131482 -0700
  128. @@ -96,4 +96,4 @@
  129. # Files that are generated and should be cleaned with make distclean
  130. DISTCLEANFILES =
  131. -include BuildTools/Makemain.inc
  132. +include ../BuildTools/Makemain.inc
  133. diff -ur CoinMP-1.8.4.orig/Cgl/configure.ac CoinMP-1.8.4/Cgl/configure.ac
  134. --- CoinMP-1.8.4.orig/Cgl/configure.ac 2019-02-22 15:53:37.000000000 -0800
  135. +++ CoinMP-1.8.4/Cgl/configure.ac 2019-04-30 19:28:19.639410332 -0700
  136. @@ -20,6 +20,8 @@
  137. This file is part of the open source package Coin which is distributed
  138. under the Eclipse Public License.])
  139. +m4_include([../BuildTools/coin.m4])
  140. +
  141. # List one file in the package so that the configure script can test
  142. # whether the package is actually there
  143. AC_CONFIG_SRCDIR(src/CglMessage.hpp)
  144. @@ -52,6 +54,8 @@
  145. # Initialize automake and libtool
  146. AC_COIN_INIT_AUTO_TOOLS
  147. +LT_INIT
  148. +
  149. #############################################################################
  150. # COIN-OR components #
  151. #############################################################################
  152. diff -ur CoinMP-1.8.4.orig/Clp/Makefile.am CoinMP-1.8.4/Clp/Makefile.am
  153. --- CoinMP-1.8.4.orig/Clp/Makefile.am 2015-03-09 08:16:55.000000000 -0700
  154. +++ CoinMP-1.8.4/Clp/Makefile.am 2019-04-30 19:12:21.149131482 -0700
  155. @@ -146,4 +146,4 @@
  156. # Files that are generated and should be cleaned with make distclean
  157. DISTCLEANFILES =
  158. -include BuildTools/Makemain.inc
  159. +include ../BuildTools/Makemain.inc
  160. diff -ur CoinMP-1.8.4.orig/Clp/configure.ac CoinMP-1.8.4/Clp/configure.ac
  161. --- CoinMP-1.8.4.orig/Clp/configure.ac 2019-02-22 15:45:48.000000000 -0800
  162. +++ CoinMP-1.8.4/Clp/configure.ac 2019-04-30 19:28:15.671371852 -0700
  163. @@ -20,6 +20,8 @@
  164. This file is part of the open source package Coin which is distributed
  165. under the Eclipse Public License.])
  166. +m4_include([../BuildTools/coin.m4])
  167. +
  168. # List one file in the package so that the configure script can test
  169. # whether the package is actually there
  170. AC_CONFIG_SRCDIR(src/ClpSimplex.cpp)
  171. @@ -52,6 +54,8 @@
  172. # Initialize automake and libtool
  173. AC_COIN_INIT_AUTO_TOOLS
  174. +LT_INIT
  175. +
  176. #############################################################################
  177. # COIN-OR components #
  178. #############################################################################
  179. @@ -139,7 +143,7 @@
  180. LIBS="$LIBS $use_wsmp $BLAS_LIBS"
  181. AC_LANG_PUSH([Fortran 77])
  182. AC_MSG_CHECKING([whether user-supplied WSMP library \"$use_wsmp\" works])
  183. - AC_TRY_LINK([],[ call WSSMP()],
  184. + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ call WSSMP()]])],
  185. [AC_MSG_RESULT(yes)],
  186. [AC_MSG_RESULT(no)
  187. AC_MSG_ERROR([WSMP library $use_wsmp does not seem to work])])
  188. diff -ur CoinMP-1.8.4.orig/CoinMP/Makefile.am CoinMP-1.8.4/CoinMP/Makefile.am
  189. --- CoinMP-1.8.4.orig/CoinMP/Makefile.am 2015-01-27 22:55:44.000000000 -0800
  190. +++ CoinMP-1.8.4/CoinMP/Makefile.am 2019-04-30 19:12:21.149131482 -0700
  191. @@ -88,4 +88,4 @@
  192. # Files that are generated and should be cleaned with make distclean
  193. DISTCLEANFILES =
  194. -include BuildTools/Makemain.inc
  195. +include ../BuildTools/Makemain.inc
  196. diff -ur CoinMP-1.8.4.orig/CoinMP/configure.ac CoinMP-1.8.4/CoinMP/configure.ac
  197. --- CoinMP-1.8.4.orig/CoinMP/configure.ac 2019-02-23 11:34:54.000000000 -0800
  198. +++ CoinMP-1.8.4/CoinMP/configure.ac 2019-04-30 19:28:27.207483721 -0700
  199. @@ -20,6 +20,8 @@
  200. This file is part of the open source package CoinMP which is distributed
  201. under the Common Public License.])
  202. +m4_include([../BuildTools/coin.m4])
  203. +
  204. # List one file in the package so that the configure script can test
  205. # whether the package is actually there
  206. AC_CONFIG_SRCDIR(src/CoinMP.h)
  207. @@ -52,6 +54,8 @@
  208. # Initialize automake and libtool
  209. AC_COIN_INIT_AUTO_TOOLS
  210. +LT_INIT
  211. +
  212. #############################################################################
  213. # COIN-OR components #
  214. #############################################################################
  215. diff -ur CoinMP-1.8.4.orig/CoinUtils/Makefile.am CoinMP-1.8.4/CoinUtils/Makefile.am
  216. --- CoinMP-1.8.4.orig/CoinUtils/Makefile.am 2015-02-06 16:02:10.000000000 -0800
  217. +++ CoinMP-1.8.4/CoinUtils/Makefile.am 2019-04-30 19:12:21.150131492 -0700
  218. @@ -93,4 +93,4 @@
  219. # Files that are generated and should be cleaned with make distclean
  220. DISTCLEANFILES =
  221. -include BuildTools/Makemain.inc
  222. +include ../BuildTools/Makemain.inc
  223. diff -ur CoinMP-1.8.4.orig/CoinUtils/configure.ac CoinMP-1.8.4/CoinUtils/configure.ac
  224. --- CoinMP-1.8.4.orig/CoinUtils/configure.ac 2019-02-22 11:53:04.000000000 -0800
  225. +++ CoinMP-1.8.4/CoinUtils/configure.ac 2019-04-30 19:28:05.735275497 -0700
  226. @@ -20,6 +20,8 @@
  227. This file is part of the open source package Coin which is distributed
  228. under the Eclipse Public License.])
  229. +m4_include([../BuildTools/coin.m4])
  230. +
  231. # List one file in the package so that the configure script can test
  232. # whether the package is actually there
  233. AC_CONFIG_SRCDIR(src/CoinError.cpp)
  234. @@ -61,6 +63,8 @@
  235. # Initialize automake and libtool
  236. AC_COIN_INIT_AUTO_TOOLS
  237. +LT_INIT
  238. +
  239. ############################################################################
  240. # Stuff that we need for finite and isnan #
  241. ############################################################################
  242. diff -ur CoinMP-1.8.4.orig/Data/Sample/Makefile.am CoinMP-1.8.4/Data/Sample/Makefile.am
  243. --- CoinMP-1.8.4.orig/Data/Sample/Makefile.am 2012-11-21 10:57:40.000000000 -0800
  244. +++ CoinMP-1.8.4/Data/Sample/Makefile.am 2019-04-30 19:12:21.150131492 -0700
  245. @@ -22,7 +22,7 @@
  246. pkgconfiglibdir = $(libdir)/pkgconfig
  247. pkgconfiglib_DATA = coindatasample.pc
  248. -include BuildTools/Makemain.inc
  249. +include ../../BuildTools/Makemain.inc
  250. test:
  251. @echo "No test available."
  252. diff -ur CoinMP-1.8.4.orig/Data/Sample/configure.ac CoinMP-1.8.4/Data/Sample/configure.ac
  253. --- CoinMP-1.8.4.orig/Data/Sample/configure.ac 2018-11-17 08:27:50.000000000 -0800
  254. +++ CoinMP-1.8.4/Data/Sample/configure.ac 2019-04-30 19:12:21.150131492 -0700
  255. @@ -20,6 +20,8 @@
  256. This file is part of the open source package Coin which is distributed
  257. under the Eclipse Public License.])
  258. +m4_include([../../BuildTools/coin.m4])
  259. +
  260. # List one file in the package so that the configure script can test
  261. # whether the package is actually there
  262. AC_CONFIG_SRCDIR(configure.ac)
  263. diff -ur CoinMP-1.8.4.orig/Osi/Makefile.am CoinMP-1.8.4/Osi/Makefile.am
  264. --- CoinMP-1.8.4.orig/Osi/Makefile.am 2015-02-07 11:56:33.000000000 -0800
  265. +++ CoinMP-1.8.4/Osi/Makefile.am 2019-04-30 19:12:21.150131492 -0700
  266. @@ -126,4 +126,4 @@
  267. # Files that are generated and should be cleaned with make distclean
  268. DISTCLEANFILES =
  269. -include BuildTools/Makemain.inc
  270. +include ../BuildTools/Makemain.inc
  271. diff -ur CoinMP-1.8.4.orig/Osi/configure.ac CoinMP-1.8.4/Osi/configure.ac
  272. --- CoinMP-1.8.4.orig/Osi/configure.ac 2019-02-22 12:17:19.000000000 -0800
  273. +++ CoinMP-1.8.4/Osi/configure.ac 2019-04-30 19:28:10.943326002 -0700
  274. @@ -20,6 +20,8 @@
  275. This file is part of the open source package Coin which is distributed
  276. under the Eclipse Public License.])
  277. +m4_include([../BuildTools/coin.m4])
  278. +
  279. # List one file in the package so that the configure script can test
  280. # whether the package is actually there
  281. AC_CONFIG_SRCDIR(src/Osi/OsiAuxInfo.cpp)
  282. @@ -49,6 +51,8 @@
  283. # Initialize automake and libtool
  284. AC_COIN_INIT_AUTO_TOOLS
  285. +LT_INIT
  286. +
  287. #############################################################################
  288. # COIN-OR components #
  289. #############################################################################
  290. diff -ur CoinMP-1.8.4.orig/configure.ac CoinMP-1.8.4/configure.ac
  291. --- CoinMP-1.8.4.orig/configure.ac 2019-02-23 11:34:54.000000000 -0800
  292. +++ CoinMP-1.8.4/configure.ac 2019-04-30 19:20:45.540012978 -0700
  293. @@ -20,6 +20,8 @@
  294. This file is part of the open source package CoinMP which is distributed
  295. under the Common Public License.])
  296. +m4_include([BuildTools/coin.m4])
  297. +
  298. AC_REVISION(0.9)
  299. # List one file in the package so that the configure script can test