From b1b534d46e61603b46a89ead3891c1f860be2625 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 5 Mar 2009 05:55:00 +0000 Subject: Use autoconf variables in code --- src/getht.c | 4 ++-- src/version.h | 21 --------------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 src/version.h diff --git a/src/getht.c b/src/getht.c index 63ba956..f18d390 100644 --- a/src/getht.c +++ b/src/getht.c @@ -18,6 +18,7 @@ * */ +#include #include #include #include @@ -26,7 +27,6 @@ #include #include -#include "version.h" #include "issue.h" #include "getht.h" @@ -133,7 +133,7 @@ int main(int argc, char *argv[]) option = 1; break; case 'V': - printf("GetHT version: %s\n",VERSION); + printf("GetHT version: %s\n",PACKAGE_VERSION); option = 1; return 0; break; diff --git a/src/version.h b/src/version.h deleted file mode 100644 index a0b4834..0000000 --- a/src/version.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2006,2008 Nick White - * - * This file is part of GetHT - * - * GetHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GetHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GetHT. If not, see . - * - */ - -#define VERSION "0.1" -- cgit v1.2.3