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

Contents of /trunk/base/autotools/reconfig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 140 - (show annotations) (download)
Thu Dec 22 01:14:31 2005 UTC (14 years, 9 months ago) by johnpye
File size: 2228 byte(s)
Fixing problem with location of TkTable
Support use of /usr/lib/libblas.a if present on system, partial soln to bug #190
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 tktablemajor=2
41 tktableminor=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 # Use installed BLAS if it's found in an obvious place
76 blaspath=/usr/lib/libblas.a
77 if [ -e $blaspath ]; then
78 blasopt=--with-blas=$blaspath
79 else
80 blasopt=
81 fi
82
83 cmd="./configure \
84 --prefix=$ascroot \
85 --with-fortran=g77,/usr/lib/libf2c.a \
86 --enable-gcc \
87 --with-tcl="$tkroot/lib/${libpref}tcl$tkver$libsuff,$tkroot/include/tcl.h" \
88 --with-tk="$tkroot/lib/${libpref}tk$tkver$libsuff,$tkroot/include/tk.h" \
89 --with-wish="$tkroot/bin/wish" \
90 --with-tktable=$tktableroot/${libpref}Tktable$tktablever$libsuff
91 $blasopt"
92
93 echo "RUNNING CONFIGURE WITH"
94 echo $cmd
95 echo ""
96
97 $cmd

Properties

Name Value
svn:executable *

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