Commit 1de47f21 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Quote the ar path in configure

parent 97d52dd7
...@@ -372,10 +372,10 @@ AC_DEFUN([FP_PROG_AR], ...@@ -372,10 +372,10 @@ AC_DEFUN([FP_PROG_AR],
if test -z "$fp_prog_ar_raw"; then if test -z "$fp_prog_ar_raw"; then
AC_MSG_ERROR([cannot find ar in your PATH, no idea how to make a library]) AC_MSG_ERROR([cannot find ar in your PATH, no idea how to make a library])
fi fi
fp_prog_ar=$fp_prog_ar_raw fp_prog_ar="$fp_prog_ar_raw"
case $HostPlatform in case $HostPlatform in
*mingw32) if test x${OSTYPE} != xmsys; then *mingw32) if test x${OSTYPE} != xmsys; then
fp_prog_ar="`cygpath -w ${fp_prog_ar_raw} | sed -e 's@\\\\@/@g'`" fp_prog_ar="`cygpath -w "${fp_prog_ar_raw}" | sed -e 's@\\\\@/@g'`"
AC_MSG_NOTICE([normalized ar command to $fp_prog_ar]) AC_MSG_NOTICE([normalized ar command to $fp_prog_ar])
fi fi
;; ;;
...@@ -389,7 +389,7 @@ esac ...@@ -389,7 +389,7 @@ esac
AC_CACHE_CHECK([whether $fp_prog_ar_raw is GNU ar], [fp_cv_prog_ar_is_gnu], AC_CACHE_CHECK([whether $fp_prog_ar_raw is GNU ar], [fp_cv_prog_ar_is_gnu],
[if $fp_prog_ar_raw --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then [if "$fp_prog_ar_raw" --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
fp_cv_prog_ar_is_gnu=yes fp_cv_prog_ar_is_gnu=yes
else else
fp_cv_prog_ar_is_gnu=no fp_cv_prog_ar_is_gnu=no
...@@ -474,7 +474,7 @@ AC_CACHE_CHECK([whether $fp_prog_ar_raw supports -input], [fp_cv_prog_ar_support ...@@ -474,7 +474,7 @@ AC_CACHE_CHECK([whether $fp_prog_ar_raw supports -input], [fp_cv_prog_ar_support
if test $fp_prog_ar_is_gnu = no; then if test $fp_prog_ar_is_gnu = no; then
rm -f conftest* rm -f conftest*
touch conftest.lst touch conftest.lst
if FP_EVAL_STDERR([$fp_prog_ar_raw $fp_prog_ar_args conftest.a -input conftest.lst]) >/dev/null; then if FP_EVAL_STDERR(["$fp_prog_ar_raw" $fp_prog_ar_args conftest.a -input conftest.lst]) >/dev/null; then
test -s conftest.err || fp_cv_prog_ar_supports_input=yes test -s conftest.err || fp_cv_prog_ar_supports_input=yes
fi fi
rm -f conftest* rm -f conftest*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment