summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-24 19:23:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-24 19:23:32 -0400
commit2943af2761e6ac5064db077046e230fa1c2b06dd (patch)
tree55cc5039d11ed77dc3bcf6c096735a99f282f4d2
parentd4e39c488ddeabfc240e0f782b6d3263d7f400a0 (diff)
downloadfork-ledger-2943af2761e6ac5064db077046e230fa1c2b06dd.tar.gz
fork-ledger-2943af2761e6ac5064db077046e230fa1c2b06dd.tar.bz2
fork-ledger-2943af2761e6ac5064db077046e230fa1c2b06dd.zip
misc maintenance changes
-rwxr-xr-xacprep (renamed from scripts/acprep)5
-rw-r--r--configure.ac4
-rw-r--r--ledger.cc3
3 files changed, 8 insertions, 4 deletions
diff --git a/scripts/acprep b/acprep
index 71e3a415..ac68b52b 100755
--- a/scripts/acprep
+++ b/acprep
@@ -11,7 +11,10 @@ fi
autoheader
autoconf
-if [ "$1" = "--gen" ]; then
+if [ "$1" = "--debug" ]; then
./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \
LDFLAGS=-L/sw/lib CXXFLAGS="-g" --enable-debug
+elif [ "$1" = "--opt" ]; then
+ ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \
+ LDFLAGS=-L/sw/lib CXXFLAGS="-O3 -fomit-frame-pointer"
fi
diff --git a/configure.ac b/configure.ac
index 6ce08aeb..682cd261 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,8 +2,8 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT(ledger, 2.0, johnw@netartisans.com)
-AM_INIT_AUTOMAKE(ledger, 2.0)
+AC_INIT(ledger, 2.0b, johnw@netartisans.com)
+AM_INIT_AUTOMAKE(ledger, 2.0b)
AC_CONFIG_SRCDIR([main.cc])
AC_CONFIG_HEADER([acconf.h])
diff --git a/ledger.cc b/ledger.cc
index a5b0f51a..91b1985c 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -1,12 +1,13 @@
#include "ledger.h"
#include "valexpr.h"
#include "datetime.h"
+#include "acconf.h"
#include <fstream>
namespace ledger {
-const std::string version = "2.0b";
+const std::string version = PACKAGE_VERSION;
bool transaction_t::valid() const
{