summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-11-22 04:20:59 -0500
committermidipix <writeonce@midipix.org>2018-11-22 04:36:12 -0500
commit99366db3be997e2eef2a3c9a06421e80e9d5e2cf (patch)
tree0d38c552a08819f81697ed5ba39bfaa853158bc5 /configure
parent52c6363c0bb62965ee722ea02979ae5e8ccf8963 (diff)
downloadpemagine-99366db3be997e2eef2a3c9a06421e80e9d5e2cf.tar.bz2
pemagine-99366db3be997e2eef2a3c9a06421e80e9d5e2cf.tar.xz
build system: added --cfghost support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure b/configure
index ddea6d3..8c4a4ab 100755
--- a/configure
+++ b/configure
@@ -67,6 +67,7 @@ init_vars()
mb_build=$BUILD
mb_host=$HOST
mb_cchost=$CCHOST
+ mb_cfghost=$CFGHOST
mb_target=$TARGET
mb_arch=$ARCH
mb_compiler=$COMPILER
@@ -216,6 +217,7 @@ common_defaults()
[ -z "$mb_build" ] && mb_build=$mb_default_build
[ -z "$mb_host" ] && mb_host=$mb_default_host
[ -z "$mb_cchost" ] && mb_cchost=$mb_default_cchost
+ [ -z "$mb_cfghost" ] && mb_cfghost=$mb_default_cfghost
[ -z "$mb_target" ] && mb_target=$mb_default_target
[ -z "$mb_arch" ] && mb_arch=$mb_default_arch
[ -z "$mb_compiler" ] && mb_compiler=$mb_default_compiler
@@ -551,8 +553,13 @@ config_copy()
fi
fi
- sed -e 's^@cchost@^'"$mb_cchost"'^g' $mb_pwd/Makefile.tmp \
- > $mb_pwd/Makefile.host || exit 2
+ if [ -z "$mb_cfghost" ]; then
+ mb_cfghost=$mb_cchost
+ fi
+
+ sed -e 's^@cchost@^'"$mb_cchost"'^g' \
+ -e 's^@cfghost@^'"$mb_cfghost"'^g' \
+ $mb_pwd/Makefile.tmp > $mb_pwd/Makefile.host || exit 2
rm $mb_pwd/Makefile.tmp || exit 2
mv $mb_pwd/Makefile.host $mb_pwd/Makefile || exit 2
@@ -690,6 +697,9 @@ for arg ; do
--cchost=*)
mb_cchost=${arg#*=}
;;
+ --cfghost=*)
+ mb_cfghost=${arg#*=}
+ ;;
--target=*)
mb_target=${arg#*=}
;;