Subject: bug#7642: Build failure on NetBSD 5.0.2 on IA-32

From: Glenn Morris <[email-masked]>
Date: Sat, 15 Jan 2011 22:23:06 -0500

"Nelson H. F. Beebe" wrote:

> That is a definite error: configure needs to check that -lXaw3d is
> available.

configure checks for Xaw3d headers, but not for the library:

    [AC_TRY_LINK([
#include <X11/Intrinsic.h>
#include <X11/Xaw3d/Simple.h>],
      [],

Presumably your system has the include file but does not have the
library?

In Emacs 22, there used to be a test for both an include and a library:

    AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,
        [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], ,

Looks like this went in the 2007-06-13 change to configure.in.