<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<blockquote cite="mid:5028184E.7060507@open-vote.org" type="cite">
<pre wrap="">
In the meantime, I suppose I could enable the -gdwarf-2 compiler option.
</pre>
</blockquote>
<br>
yes (but it's a bit more tricky than it sounds)<br>
something like this will do<br>
<br>
<font face="Helvetica, Arial, sans-serif">A+<br>
<br>
diff --git a/configure.ac b/configure.ac<br>
index 4bd43d1..2624dc1 100644<br>
--- a/configure.ac<br>
+++ b/configure.ac<br>
@@ -236,6 +236,12 @@ then<br>
AC_SUBST(TARGETFLAGS,"-b $host_alias $TARGETFLAGS")<br>
fi<br>
<br>
+dnl Check the debug format (force pure dwarf-2 debug format until
we correctly support other versions)<br>
+tmp_cflags=$CFLAGS<br>
+CFLAGS=`echo $CFLAGS | sed -e 's/-g\\>/-gdwarf-2
-gstrict-dwarf/'`<br>
+AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv)
{ return 0; }]])],<br>
+ [], [CFLAGS=$tmp_cflags])<br>
+<br>
dnl Check for flex<br>
AC_CHECK_PROGS(FLEX,flex,none)<br>
if test "$FLEX" = "none"<br>
<br>
</font>
</body>
</html>