Adding addtional Quote around expressions in AC_TRANSLATE_DEFINE. During cross-compile builds, when values contain 'guessing yes' the single-bracket expands to multiple argments. Adding the additional quote around the entire expression avoids this. The translate call to was missing quotes, which was inconsistent with the rest of the translate calls.

This commit is contained in:
bvarner
2017-06-28 12:38:50 -04:00
parent e671489ad1
commit f2acf91add

View File

@@ -828,7 +828,7 @@ dnl $1 -- the macro to define
dnl $2 -- the value to translate dnl $2 -- the value to translate
dnl $3 -- template name dnl $3 -- template name
AC_DEFUN([AC_TRANSLATE_DEFINE], [ AC_DEFUN([AC_TRANSLATE_DEFINE], [
if [[ "x$2" = "xyes" -o "x$2" = "xguessing yes" ]]; then if [[ ""x$2"" = "xyes" -o ""x$2"" = "xguessing yes" ]]; then
AC_DEFINE($1, 1, $3) AC_DEFINE($1, 1, $3)
fi fi
]) ])
@@ -997,7 +997,7 @@ if [[ "x$have_mmap_vm" = "xyes" ]]; then
*no) have_mmap_vm=no;; *no) have_mmap_vm=no;;
esac esac
fi fi
AC_TRANSLATE_DEFINE(HAVE_MMAP_VM, $have_mmap_vm, AC_TRANSLATE_DEFINE(HAVE_MMAP_VM, "$have_mmap_vm",
[Define if your system has a working mmap()-based memory allocator.]) [Define if your system has a working mmap()-based memory allocator.])
fi dnl HAVE_MMAP_VM fi dnl HAVE_MMAP_VM