You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

493 lines
23 KiB

2 months ago
  1. 13a14,15
  2. > # we save any prevous CONFIG_FILE by appending suffix ".old",
  3. > # the new file is built up in CONFIG_TMP then renamed to CONFIG_FILE at the end.
  4. 15a18
  5. > CONFIG_TMP="$CONFIG_FILE.part"
  6. 20a24,36
  7. > COCOA_EXTLIB_DIR=`pwd`/configuration/ExternalLibs
  8. > export COCOA_EXTLIB_DIR
  9. >
  10. > # Default installation directory and command.
  11. > INSTALL_DIR=/usr/local
  12. > INSTALL="install -S"
  13. > which install > /dev/null
  14. > if [ $? -ne 0 ]
  15. > then
  16. > INSTALL="/bin/cp -f"
  17. > fi
  18. >
  19. >
  20. 76,78d91
  21. < ( --with-libreadline=* )
  22. < READLINE_LIB=`echo "$option" | cut -f 2- -d=` ;;
  23. <
  24. 84a98,100
  25. > (--no-readline )
  26. > AVOID_READLINE=yes ;;
  27. >
  28. 90a107,109
  29. > ( --with-libreadline=* )
  30. > READLINE_LIB=`echo "$option" | cut -f 2- -d=` ;;
  31. >
  32. 148a168,175
  33. > ( --prefix=* )
  34. > INSTALL_DIR=`echo "$option" | cut -f 2- -d=`
  35. > if [ \! -d "$INSTALL_DIR" ]
  36. > then
  37. > echo "$0: specified installation directory does not exist: \`$INSTALL_DIR\'"
  38. > exit 1
  39. > fi;;
  40. >
  41. 167a195,197
  42. > echo -e " --no-readline\tdo not look for libreadline.a"
  43. > echo -e " --with-libreadline=ARG\tspecify location of the file libreadline.a"
  44. > echo -e "\t\t\t[default is to search for libreadline.a]"
  45. 179c209
  46. < echo -e " --prefix=PREFIX\tinstall in PREFIX/include & PREFIX/lib (not yet implemented)"
  47. ---
  48. > echo -e " --prefix=PREFIX\tinstall in PREFIX/include & PREFIX/lib"
  49. 190a221,227
  50. > if [ "$AVOID_READLINE" = yes -a \! -z "$READLINE_LIB" ]
  51. > then
  52. > echo "$0: incompatible inputs for readline"
  53. > exit 1
  54. > fi
  55. >
  56. >
  57. 194a232
  58. >
  59. 337a376
  60. > WARNINGS="old GMP (incompat with C++11); $WARNINGS"
  61. 342c381
  62. < sleep 5
  63. ---
  64. > sleep 1
  65. 411c450
  66. < if [ "X$READLINE_LIB" = "X" ]
  67. ---
  68. > if [ -z "$AVOID_READLINE" ]
  69. 413,426c452,491
  70. < READLINE_LIB=`$SCRIPT_DIR/readline-find-lib.sh`
  71. < if [ $? -ne 0 ]
  72. < then
  73. < echo "Warning: not using readline because"
  74. < echo "$READLINE_LIB"
  75. < READLINE_LIB=
  76. < fi
  77. < else
  78. < if [ \! -f "$READLINE_LIB" -o \! -r "$READLINE_LIB" ]
  79. < then
  80. < echo "WARNING: cannot read supplied libreadline path"
  81. < echo "WARNING: proceeding without readline"
  82. < READLINE_LIB=
  83. < fi
  84. ---
  85. > if [ -z "$READLINE_LIB" ]
  86. > then
  87. > # No libreadline specified, so look for an installed version
  88. > $SCRIPT_DIR/readline-try-default.sh > /dev/null 2>& 1
  89. > if [ $? = 0 ]
  90. > then
  91. > HAVE_READLINE=yes
  92. > # Note that -lreadline includes also -lncurses or -ltermcap
  93. > READLINE_LIB="-lreadline"
  94. > else
  95. > WARNINGS="libreadline not installed; $WARNINGS"
  96. > echo "WARNING: readline is not installed"
  97. > fi
  98. > else
  99. > # user specified a libreadline
  100. > if [ \! "/$READLINE_LIB" -ef "$READLINE_LIB" ]
  101. > then
  102. > echo "ERROR: supplied libreadline path is not absolute: $READLINE_LIB"
  103. > exit 1
  104. > fi
  105. > if [ \! -f "$READLINE_LIB" -o \! -r "$READLINE_LIB" ]
  106. > then
  107. > echo "ERROR: cannot read supplied libreadline: $READLINE_LIB"
  108. > exit 1
  109. > fi
  110. > # User supplied abs path to a readable file.
  111. > READLINE_HDR=`$SCRIPT_DIR/readline-find-hdr.sh "$READLINE_LIB"`
  112. > if [ $? -ne 0 ]
  113. > then
  114. > echo "ERROR: cannot find header file for the specified libreadline." > /dev/stderr
  115. > exit 1
  116. > fi
  117. >
  118. > LIBTERMCAP=`$SCRIPT_DIR/readline-check-cxxflags.sh "$READLINE_HDR" "$READLINE_LIB"`
  119. > if [ $? = 0 ]
  120. > then
  121. > HAVE_READLINE=yes
  122. > READLINE_LIB="$READLINE_LIB $LIBTERMCAP"
  123. > fi
  124. > fi
  125. 428c493,494
  126. < if [ "X$READLINE_LIB" != "X" ]
  127. ---
  128. >
  129. > if [ $HAVE_READLINE = yes ]
  130. 430,436c496
  131. < READLINE_INCLUDE=`$SCRIPT_DIR/readline-find-hdr.sh "$READLINE_LIB"`
  132. < $SCRIPT_DIR/readline-check-cxxflags.sh "$READLINE_LIB"
  133. < if [ $? = 0 ]
  134. < then
  135. < HAVE_READLINE=yes
  136. < READLINE_FLAG="-DCoCoA_WITH_READLINE"
  137. < fi
  138. ---
  139. > READLINE_FLAG="-DCoCoA_WITH_READLINE"
  140. 438a499
  141. >
  142. 453a515,518
  143. > if [ $HAVE_QMAKE = no ]
  144. > then
  145. > WARNINGS="no qmake (so no CoCoA5 GUI); $WARNINGS"
  146. > fi
  147. 527a593
  148. > WARNINGS="BOOST not found; $WARNINGS"
  149. 775a842
  150. > LDFPIC=`$SCRIPT_DIR/fpic-ldflag.sh "$CXX"`
  151. 827a895
  152. > # Tell user the compiler and default compilation flags put in the Makefile.
  153. 829c897,898
  154. <
  155. ---
  156. > echo "The C++ compilation flags are \"$CXXFLAGS_COMMON $CXXFLAGS_DEFAULT\""
  157. > echo
  158. 838,843c907,912
  159. < echo "# Makefile configuration for CoCoALib." > "$CONFIG_FILE"
  160. < echo "# Created automatically by the configure script." >> "$CONFIG_FILE"
  161. < echo "# Created on `date \"+%Y-%m-%d at time %H:%M:%S\"`" >> "$CONFIG_FILE"
  162. < echo "# Command was: " >> "$CONFIG_FILE"
  163. < echo "# $ORIG_CMD" >> "$CONFIG_FILE"
  164. < echo >> "$CONFIG_FILE"
  165. ---
  166. > echo "# Makefile configuration for CoCoALib." > "$CONFIG_TMP"
  167. > echo "# Created automatically by the configure script." >> "$CONFIG_TMP"
  168. > echo "# Created on `date \"+%Y-%m-%d at time %H:%M:%S\"`" >> "$CONFIG_TMP"
  169. > echo "# Command was: " >> "$CONFIG_TMP"
  170. > echo "# $ORIG_CMD" >> "$CONFIG_TMP"
  171. > echo >> "$CONFIG_TMP"
  172. 845c914
  173. < /bin/cat "$CONFIG_DIR/fixed_part1" >> "$CONFIG_FILE"
  174. ---
  175. > /bin/cat "$CONFIG_DIR/fixed_part1" >> "$CONFIG_TMP"
  176. 852,854c921,923
  177. < echo "# Version number of CoCoALib we shall build." >> "$CONFIG_FILE"
  178. < echo "VERSION=$VERSION" >> "$CONFIG_FILE"
  179. < echo >> "$CONFIG_FILE"
  180. ---
  181. > echo "# Version number of CoCoALib we shall build." >> "$CONFIG_TMP"
  182. > echo "VERSION=$VERSION" >> "$CONFIG_TMP"
  183. > echo >> "$CONFIG_TMP"
  184. 857,870c926,944
  185. < echo "INSTALL=install" >> "$CONFIG_FILE"
  186. < echo "INSTALL_DIR=/usr/local" >> "$CONFIG_FILE"
  187. < echo >> "$CONFIG_FILE"
  188. < echo "EXTLIBS=\$(COCOA_ROOT)/configuration/ExternalLibs" >> "$CONFIG_FILE"
  189. < echo >> "$CONFIG_FILE"
  190. <
  191. < echo "# Compilation flags common to all cases:" >> "$CONFIG_FILE"
  192. < echo "CXXFLAGS_COMMON=$CXXFLAGS_COMMON" >> "$CONFIG_FILE"
  193. < echo "CXXFLAGS_DEFINES_COMMON=$CXXFLAGS_DEFINES_COMMON" >> "$CONFIG_FILE"
  194. < echo >> "$CONFIG_FILE"
  195. <
  196. < echo "####################################################" >> "$CONFIG_FILE"
  197. < echo "### SPECIFIC compilation flags -- CHOOSE ONE ###" >> "$CONFIG_FILE"
  198. < echo "####################################################" >> "$CONFIG_FILE"
  199. ---
  200. > echo "Installation options are:"
  201. > echo " directory INSTALL_DIR=$INSTALL_DIR"
  202. > echo " command INSTALL=$INSTALL"
  203. > echo
  204. >
  205. > echo "INSTALL_DIR=$INSTALL_DIR" >> "$CONFIG_TMP"
  206. > echo "INSTALL=$INSTALL" >> "$CONFIG_TMP"
  207. > echo >> "$CONFIG_TMP"
  208. > echo "EXTLIBS=\$(COCOA_ROOT)/configuration/ExternalLibs" >> "$CONFIG_TMP"
  209. > echo >> "$CONFIG_TMP"
  210. >
  211. > echo "# Compilation flags common to all cases:" >> "$CONFIG_TMP"
  212. > echo "CXXFLAGS_COMMON=$CXXFLAGS_COMMON" >> "$CONFIG_TMP"
  213. > echo "CXXFLAGS_DEFINES_COMMON=$CXXFLAGS_DEFINES_COMMON" >> "$CONFIG_TMP"
  214. > echo >> "$CONFIG_TMP"
  215. >
  216. > echo "####################################################" >> "$CONFIG_TMP"
  217. > echo "### SPECIFIC compilation flags -- CHOOSE ONE ###" >> "$CONFIG_TMP"
  218. > echo "####################################################" >> "$CONFIG_TMP"
  219. 904,921c978,979
  220. < echo "### Case (1): compile optimized and without debugging" >> "$CONFIG_FILE"
  221. < echo "$HASH_OPT CXXFLAGS_SPECIFIC=$CXXFLAGS_OPT" >> "$CONFIG_FILE"
  222. <
  223. < echo "### Case (2): compile with debugging activated" >> "$CONFIG_FILE"
  224. < echo "$HASH_DEBUG1 CXXFLAGS_SPECIFIC=$CXXFLAGS_DEBUG1" >> "$CONFIG_FILE"
  225. < echo "$HASH_DEBUG1 CXXFLAGS_DEFINES_SPECIFIC=$CXXFLAGS_DEFINES_DEBUG1" >> "$CONFIG_FILE"
  226. <
  227. < echo "### Case (3): compile with full debugging activated" >> "$CONFIG_FILE"
  228. < echo "$HASH_DEBUG2 CXXFLAGS_SPECIFIC=$CXXFLAGS_DEBUG2" >> "$CONFIG_FILE"
  229. < echo "$HASH_DEBUG2 CXXFLAGS_DEFINES_SPECIFIC=$CXXFLAGS_DEFINES_DEBUG2" >> "$CONFIG_FILE"
  230. <
  231. <
  232. < echo "### Case (4): compile with profiling activated" >> "$CONFIG_FILE"
  233. < echo "$HASH_PROFILE CXXFLAGS_SPECIFIC=$CXXFLAGS_PROFILE" >> "$CONFIG_FILE"
  234. <
  235. < # Tell user the default compilation flags put in the Makefile.
  236. < echo "The C++ compilation flags are \"$CXXFLAGS_COMMON $CXXFLAGS_DEFAULT\""
  237. <
  238. ---
  239. > echo "### Case (1): compile optimized and without debugging" >> "$CONFIG_TMP"
  240. > echo "$HASH_OPT CXXFLAGS_SPECIFIC=$CXXFLAGS_OPT" >> "$CONFIG_TMP"
  241. 923,933c981,1004
  242. < echo >> "$CONFIG_FILE"
  243. < echo >> "$CONFIG_FILE"
  244. < echo "# Actual compilation flags:" >> "$CONFIG_FILE"
  245. < echo "CXXFLAGS=\$(CXXFLAGS_COMMON) \$(CXXFLAGS_SPECIFIC)" >> "$CONFIG_FILE"
  246. < echo "CXXFLAGS_DEFINES=\$(CXXFLAGS_DEFINES_COMMON) \$(CXXFLAGS_DEFINES_SPECIFIC)" >> "$CONFIG_FILE"
  247. < echo >> "$CONFIG_FILE"
  248. < echo "######################################################" >> "$CONFIG_FILE"
  249. < echo "# These variables were set by the configure script." >> "$CONFIG_FILE"
  250. < echo >> "$CONFIG_FILE"
  251. < echo "CXX=$CXX" >> "$CONFIG_FILE"
  252. < echo >> "$CONFIG_FILE"
  253. ---
  254. > echo "### Case (2): compile with debugging activated" >> "$CONFIG_TMP"
  255. > echo "$HASH_DEBUG1 CXXFLAGS_SPECIFIC=$CXXFLAGS_DEBUG1" >> "$CONFIG_TMP"
  256. > echo "$HASH_DEBUG1 CXXFLAGS_DEFINES_SPECIFIC=$CXXFLAGS_DEFINES_DEBUG1" >> "$CONFIG_TMP"
  257. >
  258. > echo "### Case (3): compile with full debugging activated" >> "$CONFIG_TMP"
  259. > echo "$HASH_DEBUG2 CXXFLAGS_SPECIFIC=$CXXFLAGS_DEBUG2" >> "$CONFIG_TMP"
  260. > echo "$HASH_DEBUG2 CXXFLAGS_DEFINES_SPECIFIC=$CXXFLAGS_DEFINES_DEBUG2" >> "$CONFIG_TMP"
  261. >
  262. >
  263. > echo "### Case (4): compile with profiling activated" >> "$CONFIG_TMP"
  264. > echo "$HASH_PROFILE CXXFLAGS_SPECIFIC=$CXXFLAGS_PROFILE" >> "$CONFIG_TMP"
  265. >
  266. >
  267. > echo >> "$CONFIG_TMP"
  268. > echo >> "$CONFIG_TMP"
  269. > echo "# Actual compilation flags:" >> "$CONFIG_TMP"
  270. > echo "CXXFLAGS=\$(CXXFLAGS_COMMON) \$(CXXFLAGS_SPECIFIC)" >> "$CONFIG_TMP"
  271. > echo "CXXFLAGS_DEFINES=\$(CXXFLAGS_DEFINES_COMMON) \$(CXXFLAGS_DEFINES_SPECIFIC)" >> "$CONFIG_TMP"
  272. > echo >> "$CONFIG_TMP"
  273. > echo "######################################################" >> "$CONFIG_TMP"
  274. > echo "# These variables were set by the configure script." >> "$CONFIG_TMP"
  275. > echo >> "$CONFIG_TMP"
  276. > echo "CXX=$CXX" >> "$CONFIG_TMP"
  277. > echo >> "$CONFIG_TMP"
  278. 937,938c1008,1009
  279. < echo "# We use the following GMP installation:" >> "$CONFIG_FILE"
  280. < echo "GMP_VERSION=$GMP_VERSION" >> "$CONFIG_FILE"
  281. ---
  282. > echo "# We use the following GMP installation:" >> "$CONFIG_TMP"
  283. > echo "GMP_VERSION=$GMP_VERSION" >> "$CONFIG_TMP"
  284. 942,943c1013,1014
  285. < echo "GMP_LIB=\$(EXTLIBS)/lib/libgmp-symlink.a" >> "$CONFIG_FILE"
  286. < echo "GMP_LDLIB=-lgmp-symlink" >> "$CONFIG_FILE"
  287. ---
  288. > echo "GMP_LIB=\$(EXTLIBS)/lib/libgmp-symlink.a" >> "$CONFIG_TMP"
  289. > echo "GMP_LDLIB=-lgmp-symlink" >> "$CONFIG_TMP"
  290. 946,947c1017,1018
  291. < echo "GMPXX_LIB=\$(EXTLIBS)/lib/libgmpxx-symlink.a" >> "$CONFIG_FILE"
  292. < echo "GMPXX_LDLIB=-lgmpxx-symlink" >> "$CONFIG_FILE"
  293. ---
  294. > echo "GMPXX_LIB=\$(EXTLIBS)/lib/libgmpxx-symlink.a" >> "$CONFIG_TMP"
  295. > echo "GMPXX_LDLIB=-lgmpxx-symlink" >> "$CONFIG_TMP"
  296. 950c1021
  297. < echo "GMP_LDLIB=-lgmp" >> "$CONFIG_FILE"
  298. ---
  299. > echo "GMP_LDLIB=-lgmp" >> "$CONFIG_TMP"
  300. 953c1024
  301. < echo "GMPXX_LDLIB=-lgmpxx" >> "$CONFIG_FILE"
  302. ---
  303. > echo "GMPXX_LDLIB=-lgmpxx" >> "$CONFIG_TMP"
  304. 956c1027
  305. < #### echo "GMP_INC_DIR=\"$GMP_INC_DIR\"" >> "$CONFIG_FILE"
  306. ---
  307. > #### echo "GMP_INC_DIR=\"$GMP_INC_DIR\"" >> "$CONFIG_TMP"
  308. 958c1029
  309. < #### echo "GMP_INCLUDE=-isystem \$(GMP_INC_DIR)" >> "$CONFIG_FILE"
  310. ---
  311. > #### echo "GMP_INCLUDE=-isystem \$(GMP_INC_DIR)" >> "$CONFIG_TMP"
  312. 960c1031
  313. < echo >> "$CONFIG_FILE"
  314. ---
  315. > echo >> "$CONFIG_TMP"
  316. 963,964c1034,1035
  317. < echo "HAVE_QMAKE=$HAVE_QMAKE" >> "$CONFIG_FILE"
  318. < echo >> "$CONFIG_FILE"
  319. ---
  320. > echo "HAVE_QMAKE=$HAVE_QMAKE" >> "$CONFIG_TMP"
  321. > echo >> "$CONFIG_TMP"
  322. 968,969c1039,1040
  323. < echo "# BOOST settings:" >> "$CONFIG_FILE"
  324. < echo "HAVE_BOOST=$HAVE_BOOST" >> "$CONFIG_FILE"
  325. ---
  326. > echo "# BOOST settings:" >> "$CONFIG_TMP"
  327. > echo "HAVE_BOOST=$HAVE_BOOST" >> "$CONFIG_TMP"
  328. 973,976c1044,1047
  329. < #### echo "BOOST_INC_DIR=\"$BOOST_INC_DIR\"" >> "$CONFIG_FILE"
  330. < #### echo "BOOST_INCLUDE=-isystem \$(BOOST_INC_DIR)" >> "$CONFIG_FILE"
  331. < #### echo "BOOST_LIBS=-L\"$BOOST_LIB_DIR\" $BOOST_LIBS" >> "$CONFIG_FILE"
  332. < echo "BOOST_LDLIBS=$BOOST_LDLIBS" >> "$CONFIG_FILE"
  333. ---
  334. > #### echo "BOOST_INC_DIR=\"$BOOST_INC_DIR\"" >> "$CONFIG_TMP"
  335. > #### echo "BOOST_INCLUDE=-isystem \$(BOOST_INC_DIR)" >> "$CONFIG_TMP"
  336. > #### echo "BOOST_LIBS=-L\"$BOOST_LIB_DIR\" $BOOST_LIBS" >> "$CONFIG_TMP"
  337. > echo "BOOST_LDLIBS=$BOOST_LDLIBS" >> "$CONFIG_TMP"
  338. 978c1049
  339. < echo >> "$CONFIG_FILE"
  340. ---
  341. > echo >> "$CONFIG_TMP"
  342. 983c1054
  343. < echo
  344. ---
  345. >
  346. 987,989c1058,1060
  347. < echo "# READLINE settings:" >> "$CONFIG_FILE"
  348. < echo "HAVE_READLINE=$HAVE_READLINE" >> "$CONFIG_FILE"
  349. < echo "HAVE_READLINE=$HAVE_READLINE $READLINE_LIB"
  350. ---
  351. > echo "# READLINE settings:" >> "$CONFIG_TMP"
  352. > echo "HAVE_READLINE=$HAVE_READLINE" >> "$CONFIG_TMP"
  353. > echo "HAVE_READLINE = $HAVE_READLINE $READLINE_LIB"
  354. 992c1063
  355. < echo "READLINE_LDLIBS=-lreadline" >> "$CONFIG_FILE"
  356. ---
  357. > echo "READLINE_LDLIBS=$READLINE_LIB" >> "$CONFIG_TMP"
  358. 994c1065
  359. < echo >> "$CONFIG_FILE"
  360. ---
  361. > echo >> "$CONFIG_TMP"
  362. 997,999c1068,1070
  363. < echo "# CDD settings:" >> "$CONFIG_FILE"
  364. < echo "HAVE_CDD=$HAVE_CDD" >> "$CONFIG_FILE"
  365. < echo "HAVE_CDD=$HAVE_CDD $CDD_LIB"
  366. ---
  367. > echo "# CDD settings:" >> "$CONFIG_TMP"
  368. > echo "HAVE_CDD=$HAVE_CDD" >> "$CONFIG_TMP"
  369. > echo "HAVE_CDD = $HAVE_CDD $CDD_LIB"
  370. 1002,1004c1073,1075
  371. < echo "CDD_LIBS=\$(EXTLIBS)/lib/libcddgmp-symlink.a" >> "$CONFIG_FILE"
  372. < echo "CDD_LDLIBS=-lcddgmp-symlink" >> "$CONFIG_FILE"
  373. < echo "CDD_VERSION=" >> "$CONFIG_FILE"
  374. ---
  375. > echo "CDD_LIBS=\$(EXTLIBS)/lib/libcddgmp-symlink.a" >> "$CONFIG_TMP"
  376. > echo "CDD_LDLIBS=-lcddgmp-symlink" >> "$CONFIG_TMP"
  377. > echo "CDD_VERSION=" >> "$CONFIG_TMP"
  378. 1006c1077
  379. < echo >> "$CONFIG_FILE"
  380. ---
  381. > echo >> "$CONFIG_TMP"
  382. 1009,1011c1080,1082
  383. < echo "# FROBBY settings:" >> "$CONFIG_FILE"
  384. < echo "HAVE_FROBBY=$HAVE_FROBBY" >> "$CONFIG_FILE"
  385. < echo "HAVE_FROBBY=$HAVE_FROBBY $FROBBY_LIB"
  386. ---
  387. > echo "# FROBBY settings:" >> "$CONFIG_TMP"
  388. > echo "HAVE_FROBBY=$HAVE_FROBBY" >> "$CONFIG_TMP"
  389. > echo "HAVE_FROBBY = $HAVE_FROBBY $FROBBY_LIB"
  390. 1015,1017c1086,1088
  391. < echo "FROBBY_LIBS=\$(EXTLIBS)/lib/libfrobby-symlink.a \$(GMPXX_LIB)" >> "$CONFIG_FILE"
  392. < echo "FROBBY_LDLIBS=-lfrobby-symlink" >> "$CONFIG_FILE"
  393. < echo "FROBBY_VERSION=" >> "$CONFIG_FILE"
  394. ---
  395. > echo "FROBBY_LIBS=\$(EXTLIBS)/lib/libfrobby-symlink.a \$(GMPXX_LIB)" >> "$CONFIG_TMP"
  396. > echo "FROBBY_LDLIBS=-lfrobby-symlink" >> "$CONFIG_TMP"
  397. > echo "FROBBY_VERSION=" >> "$CONFIG_TMP"
  398. 1019c1090
  399. < echo >> "$CONFIG_FILE"
  400. ---
  401. > echo >> "$CONFIG_TMP"
  402. 1022,1024c1093,1095
  403. < echo "# GFAN settings:" >> "$CONFIG_FILE"
  404. < echo "HAVE_GFAN=$HAVE_GFAN" >> "$CONFIG_FILE"
  405. < echo "HAVE_GFAN=$HAVE_GFAN $GFAN_LIB"
  406. ---
  407. > echo "# GFAN settings:" >> "$CONFIG_TMP"
  408. > echo "HAVE_GFAN=$HAVE_GFAN" >> "$CONFIG_TMP"
  409. > echo "HAVE_GFAN = $HAVE_GFAN $GFAN_LIB"
  410. 1027,1029c1098,1100
  411. < echo "GFAN_LIBS=\$(EXTLIBS)/lib/libgfan-symlink.a" >> "$CONFIG_FILE"
  412. < echo "GFAN_LDLIBS=-lgfan-symlink" >> "$CONFIG_FILE"
  413. < echo "GFAN_VERSION=" >> "$CONFIG_FILE"
  414. ---
  415. > echo "GFAN_LIBS=\$(EXTLIBS)/lib/libgfan-symlink.a" >> "$CONFIG_TMP"
  416. > echo "GFAN_LDLIBS=-lgfan-symlink" >> "$CONFIG_TMP"
  417. > echo "GFAN_VERSION=" >> "$CONFIG_TMP"
  418. 1031c1102
  419. < echo >> "$CONFIG_FILE"
  420. ---
  421. > echo >> "$CONFIG_TMP"
  422. 1034,1036c1105,1107
  423. < echo "# GSL settings:" >> "$CONFIG_FILE"
  424. < echo "HAVE_GSL=$HAVE_GSL" >> "$CONFIG_FILE"
  425. < echo "HAVE_GSL=$HAVE_GSL $GSL_LIB"
  426. ---
  427. > echo "# GSL settings:" >> "$CONFIG_TMP"
  428. > echo "HAVE_GSL=$HAVE_GSL" >> "$CONFIG_TMP"
  429. > echo "HAVE_GSL = $HAVE_GSL $GSL_LIB"
  430. 1039,1043c1110,1114
  431. < #### echo "GSL_INC_DIR=\"$GSL_INC_DIR\"" >> "$CONFIG_FILE"
  432. < #### echo "GSL_INCLUDE=-I \$(GSL_INC_DIR)" >> "$CONFIG_FILE"
  433. < echo "GSL_LIBS=\$(EXTLIBS)/lib/libgsl-symlink.a" >> "$CONFIG_FILE"
  434. < echo "GSL_LDLIBS=-lgsl-symlink -lblas -llapack" >> "$CONFIG_FILE"
  435. < echo "GSL_VERSION=" >> "$CONFIG_FILE"
  436. ---
  437. > #### echo "GSL_INC_DIR=\"$GSL_INC_DIR\"" >> "$CONFIG_TMP"
  438. > #### echo "GSL_INCLUDE=-I \$(GSL_INC_DIR)" >> "$CONFIG_TMP"
  439. > echo "GSL_LIBS=\$(EXTLIBS)/lib/libgsl-symlink.a" >> "$CONFIG_TMP"
  440. > echo "GSL_LDLIBS=-lgsl-symlink -lblas -llapack" >> "$CONFIG_TMP"
  441. > echo "GSL_VERSION=" >> "$CONFIG_TMP"
  442. 1045c1116
  443. < echo >> "$CONFIG_FILE"
  444. ---
  445. > echo >> "$CONFIG_TMP"
  446. 1048,1050c1119,1121
  447. < echo "# Normaliz settings:" >> "$CONFIG_FILE"
  448. < echo "HAVE_NORMALIZ=$HAVE_NORMALIZ" >> "$CONFIG_FILE"
  449. < echo "HAVE_NORMALIZ=$HAVE_NORMALIZ $NORMALIZ_LIB"
  450. ---
  451. > echo "# Normaliz settings:" >> "$CONFIG_TMP"
  452. > echo "HAVE_NORMALIZ=$HAVE_NORMALIZ" >> "$CONFIG_TMP"
  453. > echo "HAVE_NORMALIZ = $HAVE_NORMALIZ $NORMALIZ_LIB"
  454. 1054,1056c1125,1127
  455. < echo "NORMALIZ_LIBS=\$(EXTLIBS)/lib/libnormaliz-symlink.a \$(GMPXX_LIB)" >> "$CONFIG_FILE"
  456. < echo "NORMALIZ_LDLIBS=-lnormaliz-symlink" >> "$CONFIG_FILE"
  457. < echo "NORMALIZ_VERSION=" >> "$CONFIG_FILE"
  458. ---
  459. > echo "NORMALIZ_LIBS=\$(EXTLIBS)/lib/libnormaliz-symlink.a \$(GMPXX_LIB)" >> "$CONFIG_TMP"
  460. > echo "NORMALIZ_LDLIBS=-lnormaliz-symlink" >> "$CONFIG_TMP"
  461. > echo "NORMALIZ_VERSION=" >> "$CONFIG_TMP"
  462. 1058c1129
  463. < echo >> "$CONFIG_FILE"
  464. ---
  465. > echo >> "$CONFIG_TMP"
  466. 1062,1063c1133
  467. < echo "LDLIBS=\$(COCOA_LIB) -L\$(EXTLIBS)/lib \$(FROBBY_LDLIBS) \$(GFAN_LDLIBS) \$(CDD_LDLIBS) \$(GSL_LDLIBS) \$(NORMALIZ_LDLIBS) \$(GMPXX_LDLIB) \$(GMP_LDLIB) \$(SOCKET_LIB) \$(BOOST_LDLIBS) \$(READLINE_LDLIBS)" >> "$CONFIG_FILE"
  468. <
  469. ---
  470. > echo "LDLIBS=$LDFPIC \$(COCOA_LIB) -L\$(EXTLIBS)/lib \$(FROBBY_LDLIBS) \$(GFAN_LDLIBS) \$(CDD_LDLIBS) \$(GSL_LDLIBS) \$(NORMALIZ_LDLIBS) \$(GMPXX_LDLIB) \$(GMP_LDLIB) \$(SOCKET_LIB) \$(BOOST_LDLIBS) \$(READLINE_LDLIBS)" >> "$CONFIG_TMP"
  471. 1076c1146
  472. < echo "SOCKET_LIB=$SOCKET_LIB" >> "$CONFIG_FILE"
  473. ---
  474. > echo "SOCKET_LIB=$SOCKET_LIB" >> "$CONFIG_TMP"
  475. 1081,1083c1151
  476. < # Append the second fixed part to $CONFIG_FILE
  477. <
  478. < /bin/cat "$CONFIG_DIR/fixed_part2" >> "$CONFIG_FILE"
  479. ---
  480. > # Append the second fixed part to $CONFIG_TMP, then rename to $CONFIG_FILE
  481. 1084a1153,1154
  482. > /bin/cat "$CONFIG_DIR/fixed_part2" >> "$CONFIG_TMP"
  483. > /bin/mv "$CONFIG_TMP" "$CONFIG_FILE"
  484. 1095c1165
  485. < echo "CoCoALib configuration process complete"
  486. ---
  487. > echo "CoCoALib configuration process complete."
  488. 1096a1167,1171
  489. > if [ -n "$WARNINGS" ]
  490. > then
  491. > echo "======================================================="
  492. > echo "**WARNINGS** $WARNINGS"
  493. > fi