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

Contents of /trunk/base/autotools/reconfig84

Parent Directory Parent Directory | Revision Log Revision Log


Revision 537 - (show annotations) (download)
Tue Apr 25 21:58:56 2006 UTC (13 years, 9 months ago) by ben.allan
File size: 2670 byte(s)
porting tk stuff.
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 # *** INSTALL GnuWin32 'flex' in the default location... ***
19 export PATH=$PATH:/c/Program\ Files/GnuWin32/bin
20 else
21 echo "LINUX CONFIGURATION"
22 versep=.
23 libsuff=.so
24 libpref=lib
25 tkrootdefault=/usr
26 fi
27
28
29 # Assume Tcl/Tk version 8.4 unless override with environment var
30 if [ $TKVERSION ]; then
31 tkver=$TKVERSION
32 else
33 tkmajor=8
34 tkminor=4
35 tkver=$tkmajor$versep$tkminor
36 fi
37
38 # Assume Tktable version 2.9 unless override with environment var
39 if [ $TKTABLEVERSION ]; then
40 tktablever=$TKTABLEVERSION
41 else
42 tktablemajor=2
43 tktableminor=9
44 tktablever=$tktablemajor$versep$tktableminor
45 fi
46
47 # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present
48 # or override with environment var
49 if [ $TKROOT ]; then
50 tkroot=$TKROOT
51 elif [ -d ~/tk ]; then
52 tkroot=~/tk
53 elif [ -d ~/tk84 ]; then
54 tkroot=~/tk84
55 else
56 tkroot=$tkrootdefault
57 fi
58
59 # Assume Tktable installed under $tkroot/share unless
60 # Tktable present in $tkroot/lib (not as good for non-root builds)
61 # or override with environment var
62 if [ $TKTABLEROOT ]; then
63 tktableroot=$TKTABLEROOT
64 elif [ -d $tkroot/lib/Tktable$tktablever ]; then
65 tktableroot=$tkroot/lib/Tktable$tktablever
66 else
67 tktableroot=$tkroot/share/Tktable$tktablever
68 fi
69
70 # Install everything in ~/ascroot unless override with envir var
71 if [ $ASCROOT ]; then
72 ascroot=$ASCROOT;
73 else
74 ascroot=~/ascroot
75 fi
76
77 # Use installed BLAS if it's found in an obvious place
78 blaspath=/usr/lib/libblas
79 if [ -e $blaspath.a ]; then
80 blasopt=--with-blas=$blaspath.a
81 elif [ -e $blaspath.so.3 ]; then
82 blasopt=--with-blas=$blaspath.so.3
83 else
84 blasopt=
85 fi
86
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-tktable=$tktableroot/${libpref}Tktable$tktablever$libsuff
90 #--with-wish="$tkroot/bin/wish" \
91
92 if [ $COVERAGE ]; then
93 export CFLAGS="-ggdb -fprofile-arcs -ftest-coverage"
94 fi
95
96 cmd="./configure \
97 --prefix=$ascroot \
98 --with-fortran=g77,/usr/lib/libg2c.so.0 \
99 --enable-gcc \
100 --enable-optimization \
101 --enable-dynamic-packages \
102 --with-tkconfig=$tkroot/lib \
103 --with-tclconfig=$tkroot/lib \
104 $blasopt"
105
106 #--enable-relation-debugging
107 #--enable-compiler-timing
108
109 echo "RUNNING CONFIGURE WITH"
110 echo $cmd
111 echo ""
112
113 $cmd

Properties

Name Value
svn:executable *

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