[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix thinkos in DW_FORM_strx detection in configure.ac



Hello,

My patch "568dee1 PR25042 - Support string form DW_FORM_strx{1,4} from
DWARF 5" introduced a thinko in configure.ac.  The thinko triggers a
regression test issue on old systems where we don't support
DW_FORM_strx from DWARF 5.  Fixed thus.

Applied to master.

	* configure.ac: Fix thinko when setting the HAVE_DW_FORM_strx
	macro.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index df3b6b9..87605a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -830,10 +830,10 @@ if test x$HAS_DW_FORM_strx4 = xyes; then
 	     [Define to 1 if dwarf.h has the DW_FORM_strx4 enumerator])
 fi
 
-if test x$HAS_DW_FORM_strx1 -a \
-   	x$HAS_DW_FORM_strx2 -a \
-   	x$HAS_DW_FORM_strx3 -a \
-   	x$HAS_DW_FORM_strx4; then
+if test x$HAS_DW_FORM_strx1 = xyes -a \
+	x$HAS_DW_FORM_strx2 = xyes -a \
+	x$HAS_DW_FORM_strx3 = xyes -a \
+	x$HAS_DW_FORM_strx4 = xyes ; then
    AC_DEFINE([HAVE_DW_FORM_strx],
    	     1,
 	     [Define to 1 if dwarf.h has the DW_FORM_strx enumerators])
-- 
1.8.3.1


-- 
		Dodji