/[ascend]/trunk/base/autotools/reconfig
ViewVC logotype

Contents of /trunk/base/autotools/reconfig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137 - (show annotations) (download)
Wed Dec 21 06:05:14 2005 UTC (14 years, 7 months ago) by johnpye
File size: 2060 byte(s)
MinGW configuration underway. A problem with detection of Tk 8.3.
1 #!/bin/sh
2
3 # Added some new stuff here to allow reconfig to be
4 # used without tweaking. Art, you should be able to use
5 # it unmodified. Likewise Ben.
6
7 # I tweaked it to install to ~/ascroot/bin/ascend4
8 # instead of the default /usr/local/bin
9 # so that you can test without having to log in as root.
10
11 # Platform-specific shenanigans
12 if [ "$OSTYPE" = "msys" ]; then
13 echo "MINGW CONFIGURATION"
14 versep=
15 libsuff=.lib
16 libpref=
17 tkrootdefault=/c/Tcl
18 else
19 echo "LINUX CONFIGURATION"
20 versep=.
21 libsuff=.so
22 libpref=lib
23 tkrootdefault=/usr
24 fi
25
26
27 # Assume Tcl/Tk version 8.3 unless override with environment var
28 if [ $TKVERSION ]; then
29 tkver=$TKVERSION
30 else
31 tkmajor=8
32 tkminor=3
33 tkver=$tkmajor$versep$tkminor
34 fi
35
36 # Assume Tktable version 2.8 unless override with environment var
37 if [ $TKTABLEVERSION ]; then
38 tktablever=$TKTABLEVERSION
39 else
40 tktableminor=2
41 tktablemajor=8
42 tktablever=$tktablemajor$versep$tktableminor
43 fi
44
45 # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present
46 # or override with environment var
47 if [ $TKROOT ]; then
48 tkroot=$TKROOT
49 elif [ -d ~/tk ]; then
50 tkroot=~/tk
51 elif [ -d ~/tk83 ]; then
52 tkroot=~/tk83
53 else
54 tkroot=$tkrootdefault
55 fi
56
57 # Assume Tktable installed under $tkroot/share unless
58 # Tktable present in $tkroot/lib (not as good for non-root builds)
59 # or override with environment var
60 if [ $TKTABLEROOT ]; then
61 tktableroot=$TKTABLEROOT
62 elif [ -d $tkroot/lib/Tktable$tktablever ]; then
63 tktableroot=$tkroot/lib/Tktable$tktablever
64 else
65 tktableroot=$tkroot/share/Tktable$tktablever
66 fi
67
68 # Install everything in ~/ascroot unless override with envir var
69 if [ $ASCROOT ]; then
70 ascroot=$ASCROOT;
71 else
72 ascroot=~/ascroot
73 fi
74
75 cmd="./configure \
76 --prefix=$ascroot \
77 --with-fortran=g77,/usr/lib/libf2c.a \
78 --enable-gcc \
79 --with-tcl="$tkroot/lib/${libpref}tcl$tkver$libsuff,$tkroot/include/tcl.h" \
80 --with-tk="$tkroot/lib/${libpref}tk$tkver$libsuff,$tkroot/include/tk.h" \
81 --with-wish="$tkroot/bin/wish" \
82 --with-tktable=$tktableroot/${libpref}Tktable$tktablever$libsuff"
83
84 echo "RUNNING CONFIGURE WITH"
85 echo $cmd
86 echo ""
87
88 $cmd

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22