Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to configure (Fix for #1291) #1292

Merged
merged 1 commit into from
Dec 14, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ valopt() {
local DOC="$*"
if [ $HELP -eq 0 ]
then
local UOP=$(echo $OP | tr 'a-z-' 'A-Z_')
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
local V="CFG_${UOP}"
eval $V="$DEFAULT"
for arg in $CFG_CONFIGURE_ARGS
Expand Down Expand Up @@ -335,6 +335,11 @@ then
CFG_PREFIX=/usr/local
fi

if [ -z "$CFG_HOST_TRIPLE" ]
then
CFG_HOST_TRIPLE="$DEFAULT_HOST_TRIPLE"
fi

if [ -z "$CFG_TARGET_TRIPLES" ]
then
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"
Expand Down