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

Diff of /trunk/base/autotools/reconfig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 136 by johnpye, Wed Dec 21 04:39:23 2005 UTC revision 137 by johnpye, Wed Dec 21 06:05:14 2005 UTC
# Line 8  Line 8 
8  # instead of the default /usr/local/bin  # instead of the default /usr/local/bin
9  # so that you can test without having to log in as root.  # 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  # Assume Tcl/Tk version 8.3 unless override with environment var
28  if [ $TKVERSION ]; then  if [ $TKVERSION ]; then
29      tkver=$TKVERSION      tkver=$TKVERSION
30  else  else
31      tkver=8.3      tkmajor=8
32        tkminor=3
33        tkver=$tkmajor$versep$tkminor
34  fi  fi
35    
36  # Assume Tktable version 2.8 unless override with environment var  # Assume Tktable version 2.8 unless override with environment var
37  if [ $TKTABLEVERSION ]; then  if [ $TKTABLEVERSION ]; then
38      tktablever=$TKTABLEVERSION      tktablever=$TKTABLEVERSION
39  else  else
40      tktablever=2.8      tktableminor=2
41        tktablemajor=8
42        tktablever=$tktablemajor$versep$tktableminor
43  fi  fi
44    
45  # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present  # Assume Tcl/Tk installed under /usr unless ~/tk or ~/tk83 present
# Line 31  elif [ -d ~/tk ]; then Line 51  elif [ -d ~/tk ]; then
51  elif [ -d ~/tk83 ]; then  elif [ -d ~/tk83 ]; then
52      tkroot=~/tk83      tkroot=~/tk83
53  else  else
54      tkroot=/usr      tkroot=$tkrootdefault
55  fi  fi
56    
57  # Assume Tktable installed under $tkroot/share unless  # Assume Tktable installed under $tkroot/share unless
# Line 56  cmd="./configure  \ Line 76  cmd="./configure  \
76  --prefix=$ascroot \  --prefix=$ascroot \
77  --with-fortran=g77,/usr/lib/libf2c.a \  --with-fortran=g77,/usr/lib/libf2c.a \
78  --enable-gcc \  --enable-gcc \
79  --with-tcl="$tkroot/lib/libtcl$tkver.so,$tkroot/include/tcl.h" \  --with-tcl="$tkroot/lib/${libpref}tcl$tkver$libsuff,$tkroot/include/tcl.h" \
80  --with-tk="$tkroot/lib/libtk$tkver.so,$tkroot/include/tk.h" \  --with-tk="$tkroot/lib/${libpref}tk$tkver$libsuff,$tkroot/include/tk.h" \
81  --with-wish="$tkroot/bin/wish" \  --with-wish="$tkroot/bin/wish" \
82  --with-tktable=$tktableroot/libTktable$tktablever.so"  --with-tktable=$tktableroot/${libpref}Tktable$tktablever$libsuff"
83    
84  echo "RUNNING CONFIGURE WITH"  echo "RUNNING CONFIGURE WITH"
85  echo $cmd  echo $cmd

Legend:
Removed from v.136  
changed lines
  Added in v.137

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