[ghemical-devel] support for MPQC v2 was added

Michael Banck mbanck@gmx.net
Tue, 21 May 2002 11:42:25 +0200


Hi,

On Tue, May 21, 2002 at 10:23:00AM +0300, Tommi Hassinen wrote:
> It looks quite good, but now I have some problems with autoconf here.
> Is it so that one should use autoconf just by running
> 
> 	autoconf
> 
> at the source top directory, right? It updated the configure script, and
> the script worked OK otherwise except that in the resulting Makefile the
> top_builddir variable was not set:
> 
> 	top_builddir=

Hmm, strange. I get
	top_builddir=   /home/mbanck/src/ghemical-test

here. What does
grep top_builddir configure
tell you? I get top_builddir=`pwd`, besides else.
 
> so the Makefile didn't work. I fixed that manually:
> 
> 	top_builddir=	/home/thassine/ghemical
> 
> and then everything worked in the simple "./configure" case. Then I tried
> "./configure --enable-mpqc" and it went a bit worse. It gives
> 
> $ make
> g++  -c -g -O2 -fno-exceptions -I../../src/graphics -I../../src/common
> -I../../openbabel -I../..//src -I/usr/include/gtk-1.2
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
> -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
> -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
> ./qm1docv.cpp
> In file included from ./qm1docv.cpp:14:
> ../../src/common/qm1e_mpqc.h:27: util/keyval/keyval.h: No such file or
> directory
> 
> so, under src/graphics, the MPQC cflags are not passed to g++ command
> line.

Ah, I didn't know that you need MPQC stuff in graphics, too. This has 
canged since 0.82, hasn't it?

We need to add
	@SC_CPPFLAGS@

to src/graphics/Makefile.in's INCS= variable then. 

> Did I do something wrong with the autoconf, or is it a wrong version or
> something like that?

No idea. Just strange that you used autoconf 2.13, configure.in says
AC_PREREQ(2.48)

and I couldn't even run autoconf2.13 successfully when I commented that
out, AC_PROG_CC_STDC was undefined. But even then top_builddir was set
correctly :-/

bye,

Michael