Ignore:
Timestamp:
05/20/10 01:12:26 (11 years ago)
Author:
davidb
Message:

Better support for multiple optional arguments to opt_configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/cascade-make/trunk/lib/cascade-lib.bash

    r22122 r22130  
    9797opt_run_configure()
    9898{
    99   local force_config=$1
    100   local auto_config=$2
    101   local package=$3
    102   local version=$4
    103   local prefix=$5
    104   local opt_args="";
    105 
    106   if [ ! -z "$6" ] ; then
    107     opt_args=$6
    108   fi
     99  local force_config=$1; shift
     100  local auto_config=$1; shift
     101  local package=$1; shift
     102  local version=$1; shift
     103  local prefix=$1; shift
    109104
    110105  if [ $force_config = "1" ] ; then
    111106    echo "[pushd $package$version]"
    112107    ( cd $package$version ; \
    113       echo ./configure --prefix="$prefix" $opt_args ; \
    114       ./configure --prefix="$prefix" $opt_args )
     108      echo ./configure --prefix="$prefix" $CROSSCOMPILE $@ ; \
     109      ./configure --prefix="$prefix" $CROSSCOMPILE $@ )
    115110    if [ $? != 0 ] ; then
    116111        echo "      Error encountered running *configure* stage of $progname"
Note: See TracChangeset for help on using the changeset viewer.