Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4201] RE: csound5 configure.ac and Makefile.am debugging

Date2004-02-29 15:54
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4201] RE: csound5 configure.ac and Makefile.am debugging
Your last point is what I meant when saying, I don't know how to turn an
autoconf test into an automake conditional.

I have put no effort in on installation. My priority has been getting
autotools, and csound 5 itself, working for Csound developers. I will take
care of the missing file situation today, however. This may also go a long
way towards fixing up the install target.

Thanks for the debug instructions - most helpful.

Original Message:
-----------------
From:  ramsdell@mitre.org (John D. Ramsdell)
Date: 29 Feb 2004 10:51:03 -0500
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4200] csound5 configure.ac and Makefile.am debugging


Let me layout the standard debugging process for configure.ac and
Makefile.am in Csound 5.0.  This is the process used to create the
Csound 4.23 equivalents.

: Obtain a fresh check out.
$ cvs co csound5
$ cd csound5
: Construct GNU build system
$ autoreconf -i -f
: Build a distribution
$ ./configure
$ make dist
: Test distribution
$ tar xzf csound-5.0.tar.gz
$ cd csound-5.0
$ mkdir build
$ cd build
$ ../configure --prefix=$HOME/csound5
$ make
$ make install
: Ensure that $HOME/csound5/bin is on your path and then test.
$ csound ...

It is important that something reasonable happen when Csound is
configured with nothing more than a prefix specification.

On my RH9 machine, "make dist" tries to include some missing files:
H/pitch.h and H/uggab.h.  The created distribution is missing at least
H/ugrw1.h, H/ugrw2.h, and babo.h.  I'm not sure what to do about the
missing files, so I'll let someone else fix this.

I also notice that when I configure Csound 5 without making FLTK
available, the configure script concludes that FLTK is available!
I'll see if I can figure this one out.

John


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Date2004-02-29 16:32
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[CSOUND-DEV:4202] RE: csound5 configure.ac and Makefile.am debugging
"gogins@pipeline.com"  writes:

> Your last point is what I meant when saying, I don't know how to
> turn an autoconf test into an automake conditional.

and the last point was:

> From:  ramsdell@mitre.org (John D. Ramsdell)
...
> I also notice that when I configure Csound 5 without making FLTK
> available, the configure script concludes that FLTK is available!

The configure.ac file in the csound4 module is carefully tuned so that
it will sense and build a system when only X11 is available, when FLTK
is available, and when no window system is found.  The configure.ac
file has just been updated so that it does not run AC_PATH_X unless it
cannot find FLTK and a window system is being request.  This way, when
X11 is installed on Cygwin, and FLTK is present, but does not use X11,
the system will correctly build.  At the approriate time, one of us
can lift the window configuration code from csound4.  Do you plan to
support X11 without FLTK?

John

Date2004-02-29 23:22
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[CSOUND-DEV:4205] RE: csound5 configure.ac and Makefile.am debugging
"gogins@pipeline.com"  writes:

> I have put no effort in on installation. My priority has been ...

> Thanks for the debug instructions - most helpful.

Michael, my debug instructions were not meant only for you.  They are
for anyone making an effort to improve the configure.ac and
Makefile.am files.  I plan to follow the instructions.

John

> Original Message:
> -----------------
> From:  ramsdell@mitre.org (John D. Ramsdell)
> Date: 29 Feb 2004 10:51:03 -0500
> To: csound-dev@eartha.mills.edu
> Subject: [CSOUND-DEV:4200] csound5 configure.ac and Makefile.am debugging
> 
> 
> Let me layout the standard debugging process for configure.ac and
> Makefile.am in Csound 5.0.  This is the process used to create the
> Csound 4.23 equivalents.
> 
> : Obtain a fresh check out.
> $ cvs co csound5
> $ cd csound5
> : Construct GNU build system
> $ autoreconf -i -f
> : Build a distribution
> $ ./configure
> $ make dist
> : Test distribution
> $ tar xzf csound-5.0.tar.gz
> $ cd csound-5.0
> $ mkdir build
> $ cd build
> $ ../configure --prefix=$HOME/csound5
> $ make
> $ make install
> : Ensure that $HOME/csound5/bin is on your path and then test.
> $ csound ...
> 
> It is important that something reasonable happen when Csound is
> configured with nothing more than a prefix specification.
> 
> On my RH9 machine, "make dist" tries to include some missing files:
> H/pitch.h and H/uggab.h.  The created distribution is missing at least
> H/ugrw1.h, H/ugrw2.h, and babo.h.  I'm not sure what to do about the
> missing files, so I'll let someone else fix this.
> 
> I also notice that when I configure Csound 5 without making FLTK
> available, the configure script concludes that FLTK is available!
> I'll see if I can figure this one out.
> 
> John
> 
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .