Replace version.h with PACKAGE_VERSION set via AC_INIT in configure.

This commit is contained in:
Todd C. Miller
2009-05-19 21:24:05 +00:00
parent 5f9f29a233
commit f54b69b0cc
7 changed files with 114 additions and 72 deletions

3
sudo.c
View File

@@ -99,7 +99,6 @@
#include "sudo.h"
#include "lbuf.h"
#include "interfaces.h"
#include "version.h"
#ifdef USING_NONUNIX_GROUPS
# include "nonunix.h"
@@ -1452,7 +1451,7 @@ cleanup(gotsignal)
static void
show_version()
{
(void) printf("Sudo version %s\n", version);
(void) printf("Sudo version %s\n", PACKAGE_VERSION);
if (getuid() == 0) {
putchar('\n');
(void) printf("Sudoers path: %s\n", _PATH_SUDOERS);