summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-10-31 15:25:55 -0400
committermidipix <writeonce@midipix.org>2015-10-31 15:25:55 -0400
commit2318d682ccf46b2a95cbc842ad477b99201e1b34 (patch)
tree24d0a9545d1d944f27c6feaf8bab789c2b8785c1 /configure
parented04a410c277827afa351f5e58e397f8ace211c8 (diff)
downloadntapi-2318d682ccf46b2a95cbc842ad477b99201e1b34.tar.bz2
ntapi-2318d682ccf46b2a95cbc842ad477b99201e1b34.tar.xz
build system: fix support of CC, CPP, and CXX directly passed to configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 59a7640..7139ece 100755
--- a/configure
+++ b/configure
@@ -73,6 +73,10 @@ init_vars()
mb_native_os=$NATIVE_OS
mb_native_os_bits=$NATIVE_OS_BITS
mb_native_os_underscore=$NATIVE_OS_UNDERSCORE
+
+ mb_user_cc=$CC
+ mb_user_cpp=$CPP
+ mb_user_cxx=$CXX
}
@@ -300,6 +304,10 @@ config_copy()
-e 's^@native_os@^'"$mb_native_os"'^g' \
-e 's^@native_os_bits@^'"$mb_native_os_bits"'^g' \
-e 's^@native_os_underscore@^'"$mb_native_os_underscore"'^g' \
+ \
+ -e 's^@user_cc@^'"$mb_user_cc"'^g' \
+ -e 's^@user_cpp@^'"$mb_user_cpp"'^g' \
+ -e 's^@user_cxx@^'"$mb_user_cxx"'^g' \
$mb_project_dir/Makefile.in > $mb_pwd/Makefile
}