1 | # hints/mint.sh |
---|
2 | # |
---|
3 | # talk to gufl0000@stud.uni-sb.de if you want to change this file. |
---|
4 | # Please read the README.mint file. |
---|
5 | # |
---|
6 | # misc stuff |
---|
7 | |
---|
8 | case `uname -m` in |
---|
9 | atarist*) archname="m68000-mint" |
---|
10 | ;; |
---|
11 | *) archname="m68k-mint" |
---|
12 | ;; |
---|
13 | esac |
---|
14 | |
---|
15 | here=`pwd | tr -d '\015'` |
---|
16 | |
---|
17 | cc='gcc' |
---|
18 | |
---|
19 | # The weird include path is really to work around some bugs in |
---|
20 | # broken system header files. |
---|
21 | ccflags="$ccflags -D__MINT__ -Uatarist -DDEBUGGING -I$here/../mint" |
---|
22 | |
---|
23 | # libs |
---|
24 | |
---|
25 | libpth="$prefix/lib /usr/lib /usr/local/lib" |
---|
26 | glibpth="$libpth" |
---|
27 | xlibpth="$libpth" |
---|
28 | |
---|
29 | libswanted='gdbm socket port m' |
---|
30 | so='none' |
---|
31 | |
---|
32 | # |
---|
33 | # compiler & linker flags |
---|
34 | # |
---|
35 | optimize='-O2 -fomit-frame-pointer -fno-defer-pop -fstrength-reduce' |
---|
36 | |
---|
37 | # The setlocale function in the MiNTLib is actually a bad joke. We |
---|
38 | # lend a workaround from Ultrix. If neither LC_ALL nor LANG is |
---|
39 | # set in the environment, perl won't complain. If one is set to |
---|
40 | # anything but "C" you will see a warning. Note that you can |
---|
41 | # still use the GNU extension "$LANGUAGE" if you want to use |
---|
42 | # the i18n features of some GNU packages. |
---|
43 | util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"' |
---|
44 | |
---|
45 | # |
---|
46 | # Some good answers to the questions in Configure: |
---|
47 | # Does Configure really get all these wrong? |
---|
48 | usenm='true' |
---|
49 | d_suidsafe='true' |
---|
50 | clocktype='long' |
---|
51 | usevfork='true' |
---|
52 | d_fsetpos='fpos_t' |
---|
53 | gidtype='gid_t' |
---|
54 | groupstype='gid_t' |
---|
55 | lseektype='long' |
---|
56 | models='none' |
---|
57 | modetype='mode_t' |
---|
58 | sizetype='size_t' |
---|
59 | timetype='time_t' |
---|
60 | uidtype='uid_t' |
---|
61 | |
---|
62 | # Don't remove that leading tab character (Configure Black Magic (TM)). |
---|
63 | broken_pwd= |
---|
64 | case "`/bin/pwd|tr -d xy|tr '\015\012' 'xy'`" in |
---|
65 | *xy) broken_pwd=yes ;; |
---|
66 | esac |
---|
67 | |
---|
68 | if test X"$broken_pwd" = Xyes |
---|
69 | then |
---|
70 | echo " " |
---|
71 | echo "*** Building fixed 'pwd'... (as described in README.mint) ***" |
---|
72 | echo " " |
---|
73 | cd mint |
---|
74 | make pwd |
---|
75 | cd .. |
---|
76 | if test -x mint/pwd -a -w /usr/bin |
---|
77 | then |
---|
78 | echo " " |
---|
79 | echo "*** Installing fixed 'pwd'... ***" |
---|
80 | echo " " |
---|
81 | cd mint |
---|
82 | make install |
---|
83 | cd .. |
---|
84 | if cmp -s mint/pwd /usr/bin/pwd |
---|
85 | then |
---|
86 | echo "*** Installed fixed 'pwd' successfully. ***" |
---|
87 | else |
---|
88 | echo "*** Failed to install fixed 'pwd'. Aborting. ***" |
---|
89 | exit 1 |
---|
90 | fi |
---|
91 | else |
---|
92 | echo "*** Cannot install fixed 'pwd'. Aborting. ***" |
---|
93 | exit 1 |
---|
94 | fi |
---|
95 | fi |
---|