From xemacs-m  Fri Sep  5 01:09:04 1997
Received: from turnbull.sk.tsukuba.ac.jp (root@turnbull.sk.tsukuba.ac.jp [130.158.99.4])
	by xemacs.org (8.8.5/8.8.5) with SMTP id BAA10314
	for <xemacs-beta@xemacs.org>; Fri, 5 Sep 1997 01:08:32 -0500 (CDT)
Received: from turnbull.sk.tsukuba.ac.jp(really [127.0.0.1]) by turnbull.sk.tsukuba.ac.jp
	via smtpd with esmtp
	id <m0x6stM-000025C@turnbull.sk.tsukuba.ac.jp>
	for <xemacs-beta@xemacs.org>; Fri, 5 Sep 1997 16:33:20 +0900 (JST)
	(Smail-3.2 1996-Jul-4 #3 built 1997-Jun-24)
Message-Id: <m0x6stM-000025C@turnbull.sk.tsukuba.ac.jp>
To: Martin Buchholz <mrb@Eng.Sun.COM>
cc: xemacs-beta@xemacs.org, "Richard Caley (nas.c author)" <R.Caley@ed.ac.uk>,
        "Michael Nonweiler (Debian NAS package)" <mrn20@cam.ac.uk>
Subject: NAS configure in XEmacs [was: Eventual success Debian 1.3 ... ]
In-reply-to: Your message of "Thu, 04 Sep 1997 16:20:07 MST."
             <199709042320.QAA21486@xemacs.eng.sun.com> 
Date: Fri, 05 Sep 1997 16:33:20 +0900
From: "Stephen J. Turnbull" <turnbull@turnbull.sk.tsukuba.ac.jp>

>>>>> "SJT" == Stephen J Turnbull <turnbull@turnbull.sk.tsukuba.ac.jp> writes:

SJT> First, the XEmacs configure script seems to be hosed.

For the benefit of the Debian NAS package and nas.c maintainers, the
symptom is the following include files in nas.c are not found without
CFLAGS=-I/usr/X11R6/include being explicitly specified via configure.

/* nas.c --- XEmacs support for the Network Audio System server. */
#include <audio/audiolib.h>
#include <audio/soundlib.h>
#include <audio/snd.h>
#include <audio/fileutil.h>

where "<audio/...>" refers to /usr/X11R6/include/audio.  What's
missing is a link /usr/include/audio->/usr/X11R6/include/audio, which
should be provided (presumably) by the Debian package installation.
Note that "-I/usr/include/X11" loses here (audio is a sibling
directory of X11, not a child).  So this looks like Linux (Debian
package) lossage, as Martin suggested.

However, I've not had any trouble with other X stuff (on Debian 1.3)
such as Michael Harnois reports for older Debian systems (although my
experience with non-Debian packages for X is to this point limited to
building Canna, Cthugha, kterm and kinput).

SJT> I presume that systems that successfully build with the missing
SJT> `-I' switch have a symlink to the X11 headers in /usr/include.
SJT> --x-includes was not necessary for me in beta 18.

I'm sorry, I jumped to conclusions.

I'm wrong about the link from /usr/include/X11; I presumed that I
didn't have the link, but it's there on my system.  (I checked for
/usr/include/X11/audio.  Doh.)  My bad, my very, very bad.

>>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:

    Martin> Unfortunately, both Linux and HP-UX 10.20 are known to
    Martin> have this problem, so we'll likely have to find a

    Martin> In the meantime, just do configure --x-includes=
    Martin> /usr/X11R6/include on Linux and HP-UX and ????

    Martin> Hhhhhhhhhhhmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm.....................

    Martin> Oh, all right....  I surrended.  Hack, hack, hack...

Why?  Seems to me that everything you wrote is correct, and that had I
been a little more careful in checking the symlink in /usr/include, I
would have figured out sooner that the problem was not X11 headers,
but only the "Little Orphan Audio" subdirectory of /usr/X11R6/include/.

    Martin> The next 20.3 beta will contain an (as usual) completely
    Martin> untested patch to deliberately avoid /usr/include and
    Martin> /usr/lib for X stuff if the X11R6 alternatives are
    Martin> available, even if they appear at first sight to be
    Martin> correct.

I agree with your first instinct, and would prefer that this _not_ be
done, personally.  But I should learn more about the policy toward
autoconfiguration before I get into that....

Anyway, thanks for looking into it, and again my apologies for wasting 
your time by posting unwarranted guesses as to the real problem.

Steve

-- 
                            Stephen J. Turnbull
Institute of Policy and Planning Sciences                    Yaseppochi-Gumi
University of Tsukuba                      http://turnbull.sk.tsukuba.ac.jp/
Tel: +81 (298) 53-5091;  Fax: 55-3849              turnbull@sk.tsukuba.ac.jp

