IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2007, 11:05:00 AM (19 years ago)
Author:
eugene
Message:

configure cleanups:

  • moved some functions to config.tools
  • added layer in configure to catch CC="... .." options
  • interpret env CC or CC= options
  • moved ranlib setting to configure.tcsh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure

    r11341 r11888  
    11#!/bin/sh
    22
    3 ./configure.tcsh $*
     3# strip out CC, CFLAGS, CPPFLAGS, LDFLAGS and set env vars
     4while (( $# > 0 )); do
     5  skip=0
     6
     7  # strip out CC, set as env variable
     8  echo $1 | grep "^CC=" > /dev/null
     9  if (( $? == 0 )) ; then
     10    val=`echo $1 | sed "s|^CC=||"`
     11    export CC=$val
     12    skip=1
     13  fi
     14  # strip out CFLAGS, set as env variable
     15  echo $1 | grep "^CFLAGS=" > /dev/null
     16  if (( $? == 0 )) ; then
     17    val=`echo $1 | sed "s|^CFLAGS=||"`
     18    export CFLAGS=$val
     19    skip=1
     20  fi
     21  # strip out CPPFLAGS, set as env variable
     22  echo $1 | grep "^CPPFLAGS=" > /dev/null
     23  if (( $? == 0 )) ; then
     24    val=`echo $1 | sed "s|^CPPFLAGS=||"`
     25    export CPPFLAGS=$val
     26    skip=1
     27  fi
     28  # strip out LDFLAGS, set as env variable
     29  echo $1 | grep "^LDFLAGS=" > /dev/null
     30  if (( $? == 0 )) ; then
     31    val=`echo $1 | sed "s|^LDFLAGS=||"`
     32    export LDFLAGS=$val
     33    skip=1
     34  fi
     35  if (( $skip == 0 )) ; then
     36    args+=" $1"
     37  fi
     38  shift
     39done
     40
     41./configure.tcsh $args
Note: See TracChangeset for help on using the changeset viewer.