GNU autoconf/automake in OpenSSH

Roumen Petrov roumen.petrov at skalasoft.com
Mon Jan 22 19:00:05 EST 2001



Markus Friedl wrote:

> On Thu, Jan 18, 2001 at 06:25:51PM +0200, Roumen Petrov wrote:
> 
>> - removed version.h ( version number is in configure and #define in ssh.h )
> 
> 
> why?
changes in configure.in for automake :
@@ -1,6 +1,7 @@
  AC_INIT(ssh.c)
+AM_INIT_AUTOMAKE(openssh,2.3.1p1)

-AC_CONFIG_HEADER(config.h)
+AM_CONFIG_HEADER(config.h)
  AC_PROG_CC
  AC_CANONICAL_HOST

@@ -827,8 +828,8 @@
.....
about macro AM_INIT_AUTOMAKE:
first arg. is PACKAGE and second is VERSION.

I put in ssh.h.in this line:
...
#define SSH_VERSION    "@PACKAGE at _@VERSION@"
...
instead of define in version.h

If we use version.h, developer must change version in two files - configure.in and version.h !







More information about the openssh-unix-dev mailing list