IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3892


Ignore:
Timestamp:
May 11, 2005, 9:31:20 PM (21 years ago)
Author:
eugene
Message:

added option --prefix

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Configure.in

    r3322 r3892  
    1010# if you use a different toplevel directory than $(ROOT), you might
    1111# need to copy the include files in $(ROOT)/include by hand to the destination
    12 LBIN    = $(ROOT)/bin/$(ARCH)
    13 LINC    = $(ROOT)/include/$(ARCH)
    14 LLIB    = $(ROOT)/lib/$(ARCH)
    15 LMAN    = $(ROOT)/man/man1
     12LBIN    = PREFIX/bin/$(ARCH)
     13LINC    = PREFIX/include/$(ARCH)
     14LLIB    = PREFIX/lib/$(ARCH)
     15LMAN    = PREFIX/man/man1
    1616
    1717# X include and lib directories
  • trunk/Ohana/configure

    r2833 r3892  
    1717# evaluate command-line options
    1818set vararch = 0
    19 set root = ""
    20 set args = ""
     19set prefix  = ""
     20set root    = ""
     21set args    = ""
    2122while ("$1" != "")
    2223 switch ($1)
    2324  case --prefix
    2425   shift
    25    set root = $1
     26   set prefix = $1
    2627   breaksw;
    2728  case --vararch
     
    7778
    7879# set up the basic directory names:
    79 if ($root == "") then
    80     set root = `pwd`
    81 endif
    82 set inc = $root/include/$arch
    83 set lib = $root/lib/$arch
     80set root = `pwd`
     81if ($prefix == "") set prefix = $root
     82set inc = $prefix/include/$arch
     83set lib = $prefix/lib/$arch
    8484
    8585# check for basic libraries
     
    151151endif   
    152152
    153 echo ARCH: $arch
    154 echo ROOT: $root
    155153echo XINC: $xinc
    156154echo XLIB: $xlib
    157155
    158 if (-e Configure) then
    159   mv Configure Configure.bak
    160 endif
     156echo ARCH: $arch
     157echo ROOT: $root
     158echo PREFIX: $prefix
     159
     160if (-e Configure) mv Configure Configure.bak
    161161
    162162if ($vararch) then
    163   cat Configure.in | sed "s|ROOTDIR|$root|" | sed "s|^\s*ARCH|# ARCH|"   | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" > Configure
     163  cat Configure.in | sed "s|ROOTDIR|$root|" | sed "s|PREFIX|$prefix|" | sed "s|^\s*ARCH|# ARCH|"   | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" > Configure
    164164  echo ""
    165   echo "include $root/bin/"\$"ARCH in your path"
     165  echo "include $prefix/bin/"\$"ARCH in your path"
    166166else
    167   cat Configure.in | sed "s|ROOTDIR|$root|" | sed "s|ARCHVAL|$arch|" | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" > Configure
     167  cat Configure.in | sed "s|ROOTDIR|$root|" | sed "s|PREFIX|$prefix|" | sed "s|ARCHVAL|$arch|" | sed "s|XINCDIR|$xinc|" | sed "s|XLIBDIR|$xlib|" > Configure
    168168  echo ""
    169   echo "include $root/bin/$arch in your path"
     169  echo "include $prefix/bin/$arch in your path"
    170170endif
    171171
Note: See TracChangeset for help on using the changeset viewer.