author | wenzelm |
Tue, 08 Sep 2015 20:06:17 +0200 | |
changeset 61136 | 168f84f45730 |
parent 60983 | ff4a67c65084 |
child 61158 | ea6a4c8bc722 |
permissions | -rw-r--r-- |
49000 | 1 |
# -*- shell-script -*- :mode=shellscript: |
2 |
||
53686 | 3 |
POLYML_HOME="$COMPONENT" |
4 |
||
5 |
||
60983
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
6 |
# simple settings (example) |
49000 | 7 |
|
60983
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
8 |
#ML_SYSTEM=polyml-5.5.3 |
53686 | 9 |
#ML_PLATFORM="$ISABELLE_PLATFORM32" |
10 |
#ML_HOME="$POLYML_HOME/$ML_PLATFORM" |
|
49000 | 11 |
#ML_OPTIONS="-H 500" |
53686 | 12 |
#ML_SOURCES="$POLYML_HOME/src" |
49000 | 13 |
|
14 |
||
15 |
# smart settings |
|
16 |
||
60983
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
17 |
ML_SYSTEM=polyml-5.5.3 |
49000 | 18 |
|
19 |
case "$ISABELLE_PLATFORM" in |
|
20 |
*-linux) |
|
53686 | 21 |
if env LD_LIBRARY_PATH="$POLYML_HOME/$ISABELLE_PLATFORM32:$LD_LIBRARY_PATH" \ |
22 |
"$POLYML_HOME/$ISABELLE_PLATFORM32/poly" -v >/dev/null 2>/dev/null |
|
49000 | 23 |
then |
24 |
ML_PLATFORM="$ISABELLE_PLATFORM32" |
|
25 |
else |
|
26 |
ML_PLATFORM="$ISABELLE_PLATFORM64" |
|
51060 | 27 |
if [ -z "$ML_PLATFORM_FALLBACK" ]; then |
28 |
echo >&2 "### Cannot execute Poly/ML in 32bit mode (missing shared libraries for C/C++)" |
|
29 |
echo >&2 "### Using bulky 64bit version of Poly/ML instead" |
|
30 |
ML_PLATFORM_FALLBACK="true" |
|
31 |
fi |
|
49000 | 32 |
fi |
33 |
;; |
|
60983
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
34 |
x86-cygwin) |
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
35 |
ML_PLATFORM="x86-windows" |
ff4a67c65084
updated to polyml-5.5.3-20150820, with native x86-windows support;
wenzelm
parents:
56958
diff
changeset
|
36 |
;; |
49000 | 37 |
*) |
38 |
ML_PLATFORM="$ISABELLE_PLATFORM32" |
|
39 |
;; |
|
40 |
esac |
|
41 |
||
42 |
case "$ML_PLATFORM" in |
|
61136
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
43 |
x86_64-windows) |
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
44 |
ML_OPTIONS="-H 1000 --codepage utf8" |
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
45 |
;; |
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
46 |
x86-windows) |
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
47 |
ML_OPTIONS="-H 500 --codepage utf8" |
168f84f45730
updated to polyml-5.5.3-20150908, with support for x86_64-windows and Unicode file-names;
wenzelm
parents:
60983
diff
changeset
|
48 |
;; |
49000 | 49 |
x86_64-*) |
50 |
ML_OPTIONS="-H 1000" |
|
51 |
;; |
|
52 |
*) |
|
53 |
ML_OPTIONS="-H 500" |
|
54 |
;; |
|
55 |
esac |
|
56 |
||
53686 | 57 |
ML_HOME="$POLYML_HOME/$ML_PLATFORM" |
58 |
ML_SOURCES="$POLYML_HOME/src" |