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

Contents of /trunk/base/autotools/reconfig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 135 - (show annotations) (download)
Wed Dec 21 04:39:23 2005 UTC (14 years, 6 months ago) by johnpye
File size: 1668 byte(s)
Changing to /bin/sh
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 # Assume Tcl/Tk version 8.3 unless override with environment var
12 if [ $TKVERSION ]; then
13 tkver=$TKVERSION
14 else
15 tkver=8.3
16 fi
17
18 # Assume Tktable version 2.8 unless override with environment var
19 if [ $TKTABLEVERSION ]; then
20 tktablever=$TKTABLEVERSION
21 else
22 tktablever=2.8
23 fi
24
25 # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present
26 # or override with environment var
27 if [ $TKROOT ]; then
28 tkroot=$TKROOT
29 elif [ -d ~/tk ]; then
30 tkroot=~/tk
31 elif [ -d ~/tk83 ]; then
32 tkroot=~/tk83
33 else
34 tkroot=/usr
35 fi
36
37 # Assume Tktable installed under $tkroot/share unless
38 # Tktable present in $tkroot/lib (not as good for non-root builds)
39 # or override with environment var
40 if [ $TKTABLEROOT ]; then
41 tktableroot=$TKTABLEROOT
42 elif [ -d $tkroot/lib/Tktable$tktablever ]; then
43 tktableroot=$tkroot/lib/Tktable$tktablever
44 else
45 tktableroot=$tkroot/share/Tktable$tktablever
46 fi
47
48 # Install everything in ~/ascroot unless override with envir var
49 if [ $ASCROOT ]; then
50 ascroot=$ASCROOT;
51 else
52 ascroot=~/ascroot
53 fi
54
55 cmd="./configure \
56 --prefix=$ascroot \
57 --with-fortran=g77,/usr/lib/libf2c.a \
58 --enable-gcc \
59 --with-tcl="$tkroot/lib/libtcl$tkver.so,$tkroot/include/tcl.h" \
60 --with-tk="$tkroot/lib/libtk$tkver.so,$tkroot/include/tk.h" \
61 --with-wish="$tkroot/bin/wish" \
62 --with-tktable=$tktableroot/libTktable$tktablever.so"
63
64 echo "RUNNING CONFIGURE WITH"
65 echo $cmd
66 echo ""
67
68 $cmd

Properties

Name Value
svn:executable *

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