mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-08-10 09:25:03 +00:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user