merge with gcc
This commit is contained in:
17
configure
vendored
17
configure
vendored
@ -237,7 +237,7 @@ do
|
||||
esac
|
||||
|
||||
enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
|
||||
eval "$enableopt='$optarg'"
|
||||
eval "$enableopt=\$optarg"
|
||||
enableoptions="$enableoptions '$option'"
|
||||
;;
|
||||
--exec-prefix* | --ex*)
|
||||
@ -370,7 +370,7 @@ do
|
||||
esac
|
||||
|
||||
withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
|
||||
eval $withopt="$optarg"
|
||||
eval $withopt="\$optarg"
|
||||
withoptions="$withoptions $option"
|
||||
;;
|
||||
--without-*)
|
||||
@ -576,7 +576,6 @@ case "${srcdir}" in
|
||||
fi
|
||||
esac
|
||||
|
||||
|
||||
# default exec_prefix
|
||||
case "${exec_prefixoption}" in
|
||||
"") exec_prefix="\$(prefix)" ;;
|
||||
@ -912,9 +911,10 @@ if [ "${build}" != "${host}" ]; then
|
||||
tools="${tools} HOST_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
|
||||
tools="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET"
|
||||
tools="${tools} WINDRES WINDRES_FOR_TARGET YACC"
|
||||
tools="${tools} OBJCOPY OBJDUMP"
|
||||
|
||||
for var in ${tools}; do
|
||||
if [ -z "`eval 'echo $'"${var}"`" ] && [ -r Makefile ]; then
|
||||
if eval [ -z \"\$${var}\" ] && [ -r Makefile ]; then
|
||||
sed -n -e ':loop
|
||||
/\\$/ N
|
||||
s/\\\n//g
|
||||
@ -923,7 +923,7 @@ t loop
|
||||
< Makefile > Makefile.v
|
||||
t=`tail -1 Makefile.v`
|
||||
if [ -n "${t}" ]; then
|
||||
eval "${var}='${t}'"
|
||||
eval "${var}=\${t}"
|
||||
fi
|
||||
rm -f Makefile.v
|
||||
fi
|
||||
@ -955,6 +955,8 @@ t loop
|
||||
RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET-${target_alias}-ranlib}
|
||||
WINDRES=${WINDRES-${host_alias}-windres}
|
||||
WINDRES_FOR_TARGET=${WINDRES_FOR_TARGET-${target_alias}-windres}
|
||||
OBJCOPY=${OBJCOPY-${host_alias}-objcopy}
|
||||
OBJDUMP=${OBJDUMP-${host_alias}-objdump}
|
||||
|
||||
if [ -z "${YACC}" ]; then
|
||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
|
||||
@ -1005,6 +1007,8 @@ t loop
|
||||
export NM
|
||||
export RANLIB
|
||||
export WINDRES
|
||||
export OBJCOPY
|
||||
export OBJDUMP
|
||||
else
|
||||
# If CC is still not set, try to get gcc.
|
||||
if [ -z "${CC}" ]; then
|
||||
@ -1408,6 +1412,7 @@ EOF
|
||||
-e "s:^program_suffix[ ]*=.*$:program_suffix = ${program_suffix}:" \
|
||||
-e "s:^program_transform_name[ ]*=.*$:program_transform_name = ${program_transform_name}:" \
|
||||
-e "s|^tooldir[ ]*=.*$|tooldir = ${tooldir}|" \
|
||||
-e "s|^build_tooldir[ ]*=.*$|build_tooldir = ${tooldir}|" \
|
||||
-e "s:^DEFAULT_YACC[ ]*=.*$:DEFAULT_YACC = ${DEFAULT_YACC}:" \
|
||||
-e "s:^DEFAULT_LEX[ ]*=.*$:DEFAULT_LEX = ${DEFAULT_LEX}:" \
|
||||
-e "s:^DEFAULT_M4[ ]*=.*$:DEFAULT_M4 = ${DEFAULT_M4}:" \
|
||||
@ -1420,7 +1425,7 @@ EOF
|
||||
# tools.
|
||||
if [ "${build}" != "${host}" ]; then
|
||||
for var in ${tools}; do
|
||||
val=`eval 'echo $'"${var}"`
|
||||
eval val=\$${var}
|
||||
sed -e "/^${var}[ ]*=/{
|
||||
:loop1
|
||||
/\\\\$/ N
|
||||
|
Reference in New Issue
Block a user