[GRASS5] 5.1: mysterious configure[.in]

Hi,

today I have updated the VERSION handling in 5.1 to have it
independent from 5.0 and to fix a dependency problem, when
5.1 is linked to an uncompiled 5.0 tree.

The version numbers are written correctly by configure from
include/Make/Grass.make.in to include/Make/Grass.make

(that means that the new include/VERSION file is analysed properly).
But now in the current 5.1 CVS version the following files
are not updated properly any more:

configure ...
[...]
checking whether to use GLw... no
checking whether to use FreeType... no
checking whether to use NLS... no
creating ./config.status
creating include/Make/Grass.make <- o.k.
creating include/Make/Platform.make <- o.k.
creating include/config.h <- nothing expanded
creating ./config.status
sed: can't read confdefs.h: No such file or directory <- ???
creating include/version.h <- nothing expanded
creating include/winname.h <- nothing expanded
creating include/config.h <- again?

Maybe someone more expert for configure.in could fix this problem.

Thanks in advance,

Markus

A followup to the current configure problem in GRASS 5.1:

The configure.in changes are minimal to the working version 1.12.
But include/config.h in not written properly any more.

Find attached the diff (what I have changed) to the workinf 1.12
version, perhaps someone can tell me the trick.

For now I will revert the change to keep 5.1 in a compilable
state. I still don't understand the problem.

Markus

On Thu, Jan 30, 2003 at 11:39:20AM +0100, Markus Neteler wrote:

Hi,

today I have updated the VERSION handling in 5.1 to have it
independent from 5.0 and to fix a dependency problem, when
5.1 is linked to an uncompiled 5.0 tree.

The version numbers are written correctly by configure from
include/Make/Grass.make.in to include/Make/Grass.make

(that means that the new include/VERSION file is analysed properly).
But now in the current 5.1 CVS version the following files
are not updated properly any more:

configure ...
[...]
checking whether to use GLw... no
checking whether to use FreeType... no
checking whether to use NLS... no
creating ./config.status
creating include/Make/Grass.make <- o.k.
creating include/Make/Platform.make <- o.k.
creating include/config.h <- nothing expanded
creating ./config.status
sed: can't read confdefs.h: No such file or directory <- ???
creating include/version.h <- nothing expanded
creating include/winname.h <- nothing expanded
creating include/config.h <- again?

Maybe someone more expert for configure.in could fix this problem.

Thanks in advance,

Markus

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

(attachments)

configure.in.diff51 (2.34 KB)

Markus Neteler wrote:

A followup to the current configure problem in GRASS 5.1:

The configure.in changes are minimal to the working version 1.12.
But include/config.h in not written properly any more.

Find attached the diff (what I have changed) to the workinf 1.12
version, perhaps someone can tell me the trick.

For now I will revert the change to keep 5.1 in a compilable
state. I still don't understand the problem.

-AC_OUTPUT(include/Make/Platform.make)
+AC_OUTPUT(include/Make/Grass.make include/Make/Platform.make)
+
+#remove first to avoid link tool problems (5.0 links):

-dnl mkdir -p mk src/CMD/head src/CMD/lists src/include
-dnl AC_OUTPUT(Makefile src/CMD/head/head src/CMD/lists/optional
-dnl mk/Makefile src/include/version.h src/include/winname.h)
+\rm -f include/version.h include/winname.h
+AC_OUTPUT(include/version.h include/winname.h)

You must only call AC_OUTPUT once.

--
Glynn Clements <glynn.clements@virgin.net>

On Fri, Jan 31, 2003 at 04:56:19PM +0000, Glynn Clements wrote:

Markus Neteler wrote:

> A followup to the current configure problem in GRASS 5.1:
>
> The configure.in changes are minimal to the working version 1.12.
> But include/config.h in not written properly any more.
>
> Find attached the diff (what I have changed) to the workinf 1.12
> version, perhaps someone can tell me the trick.
>
> For now I will revert the change to keep 5.1 in a compilable
> state. I still don't understand the problem.

> -AC_OUTPUT(include/Make/Platform.make)
> +AC_OUTPUT(include/Make/Grass.make include/Make/Platform.make)
> +
> +#remove first to avoid link tool problems (5.0 links):
>
> -dnl mkdir -p mk src/CMD/head src/CMD/lists src/include
> -dnl AC_OUTPUT(Makefile src/CMD/head/head src/CMD/lists/optional
> -dnl mk/Makefile src/include/version.h src/include/winname.h)
> +\rm -f include/version.h include/winname.h
> +AC_OUTPUT(include/version.h include/winname.h)

You must only call AC_OUTPUT once.

Thanks,
now it works.

Markus