Upgraded automake file.
This commit is contained in:
parent
a1c225eeb6
commit
f397ef9cbc
7 changed files with 92 additions and 122 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,6 +7,7 @@
|
||||||
*.lo
|
*.lo
|
||||||
*.o
|
*.o
|
||||||
.gdb_history
|
.gdb_history
|
||||||
|
/configure.in~
|
||||||
Makefile
|
Makefile
|
||||||
UnitTests
|
UnitTests
|
||||||
acconf.h
|
acconf.h
|
||||||
|
|
@ -15,8 +16,8 @@ autom4te.cache
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
elc-stamp
|
elc-stamp
|
||||||
|
ledger
|
||||||
libtool
|
libtool
|
||||||
pending
|
pending
|
||||||
stamp-h1
|
stamp-h1
|
||||||
utils
|
utils
|
||||||
ledger
|
|
||||||
|
|
|
||||||
12
Makefile.am
12
Makefile.am
|
|
@ -7,7 +7,7 @@ ESC_srcdir=`echo "$(srcdir)" | sed 's/\//\\\\\//g'`
|
||||||
ESC_builddir=`echo "$(top_builddir)" | sed 's/\//\\\\\//g'`
|
ESC_builddir=`echo "$(top_builddir)" | sed 's/\//\\\\\//g'`
|
||||||
ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
|
ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
|
||||||
|
|
||||||
EXTRA_DIST = docs tests
|
EXTRA_DIST = docs docs/ledger.pdf tests
|
||||||
|
|
||||||
#(cd $(distdir)/docs; zip -r doxygen-html.zip html; rm -fr html)
|
#(cd $(distdir)/docs; zip -r doxygen-html.zip html; rm -fr html)
|
||||||
dist-hook:
|
dist-hook:
|
||||||
|
|
@ -237,18 +237,18 @@ UnitTests_LDADD = $(lib_LTLIBRARIES) gdtoa/libgdtoa.la -lcppunit
|
||||||
|
|
||||||
PyUnitTests_SOURCES = tests/python/PyUnitTests.py
|
PyUnitTests_SOURCES = tests/python/PyUnitTests.py
|
||||||
|
|
||||||
PyUnitTests: $(srcdir)/tests/python/PyUnitTests.py
|
PyUnitTests): $(srcdir)/tests/python/PyUnitTests.py
|
||||||
cat $(srcdir)/tests/python/PyUnitTests.py \
|
cat $(srcdir)/tests/python/PyUnitTests.py \
|
||||||
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
||||||
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
||||||
chmod 755 $@
|
chmod 755 $@
|
||||||
|
|
||||||
fullcheck: check
|
fullcheck: check
|
||||||
MallocGuardEdges=1 \
|
MallocGuardEdges=1 \
|
||||||
MallocScribble=1 \
|
MallocScribble=1 \
|
||||||
MallocPreScribble=1 \
|
MallocPreScribble=1 \
|
||||||
MallocCheckHeapStart=100 \
|
MallocCheckHeapStart=100 \
|
||||||
MallocCheckHeapEach=100 \
|
MallocCheckHeapEach=100 \
|
||||||
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib \
|
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib \
|
||||||
$(srcdir)/valgrind.sh $(top_builddir)/UnitTests --verify
|
$(srcdir)/valgrind.sh $(top_builddir)/UnitTests --verify
|
||||||
|
|
||||||
|
|
|
||||||
68
Makefile.in
68
Makefile.in
|
|
@ -55,7 +55,7 @@ bin_PROGRAMS = ledger$(EXEEXT)
|
||||||
@HAVE_BOOST_PYTHON_TRUE@@HAVE_XMLPARSE_TRUE@am__append_16 = xmlparse xmltok
|
@HAVE_BOOST_PYTHON_TRUE@@HAVE_XMLPARSE_TRUE@am__append_16 = xmlparse xmltok
|
||||||
@HAVE_BOOST_PYTHON_TRUE@@HAVE_LIBOFX_TRUE@am__append_17 = ofx
|
@HAVE_BOOST_PYTHON_TRUE@@HAVE_LIBOFX_TRUE@am__append_17 = ofx
|
||||||
TESTS = UnitTests$(EXEEXT) $(am__EXEEXT_1)
|
TESTS = UnitTests$(EXEEXT) $(am__EXEEXT_1)
|
||||||
@HAVE_BOOST_PYTHON_TRUE@am__append_18 = PyUnitTests
|
@HAVE_BOOST_PYTHON_TRUE@am__append_18 = PyUnitTests.py
|
||||||
check_PROGRAMS = $(am__EXEEXT_2)
|
check_PROGRAMS = $(am__EXEEXT_2)
|
||||||
subdir = .
|
subdir = .
|
||||||
DIST_COMMON = README $(am__configure_deps) $(dist_lisp_LISP) \
|
DIST_COMMON = README $(am__configure_deps) $(dist_lisp_LISP) \
|
||||||
|
|
@ -126,12 +126,12 @@ libpyledger_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
$(CXXFLAGS) $(libpyledger_la_LDFLAGS) $(LDFLAGS) -o $@
|
$(CXXFLAGS) $(libpyledger_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
@HAVE_BOOST_PYTHON_TRUE@am_libpyledger_la_rpath = -rpath $(libdir)
|
@HAVE_BOOST_PYTHON_TRUE@am_libpyledger_la_rpath = -rpath $(libdir)
|
||||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||||
@HAVE_BOOST_PYTHON_TRUE@am__EXEEXT_1 = PyUnitTests$(EXEEXT)
|
@HAVE_BOOST_PYTHON_TRUE@am__EXEEXT_1 = PyUnitTests.py$(EXEEXT)
|
||||||
am__EXEEXT_2 = UnitTests$(EXEEXT) $(am__EXEEXT_1)
|
am__EXEEXT_2 = UnitTests$(EXEEXT) $(am__EXEEXT_1)
|
||||||
PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
|
PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
|
||||||
am_PyUnitTests_OBJECTS =
|
PyUnitTests_py_SOURCES = PyUnitTests.c
|
||||||
PyUnitTests_OBJECTS = $(am_PyUnitTests_OBJECTS)
|
PyUnitTests_py_OBJECTS = PyUnitTests.$(OBJEXT)
|
||||||
PyUnitTests_LDADD = $(LDADD)
|
PyUnitTests_py_LDADD = $(LDADD)
|
||||||
nodist_UnitTests_OBJECTS = UnitTests-UnitTests.$(OBJEXT) \
|
nodist_UnitTests_OBJECTS = UnitTests-UnitTests.$(OBJEXT) \
|
||||||
UnitTests-t_utils.$(OBJEXT) UnitTests-t_times.$(OBJEXT) \
|
UnitTests-t_utils.$(OBJEXT) UnitTests-t_times.$(OBJEXT) \
|
||||||
UnitTests-t_commodity.$(OBJEXT) UnitTests-t_amount.$(OBJEXT) \
|
UnitTests-t_commodity.$(OBJEXT) UnitTests-t_amount.$(OBJEXT) \
|
||||||
|
|
@ -159,15 +159,6 @@ ledger_so_LDADD = $(LDADD)
|
||||||
DEFAULT_INCLUDES = -I.@am__isrc@
|
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
am__depfiles_maybe = depfiles
|
am__depfiles_maybe = depfiles
|
||||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|
||||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
|
||||||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|
||||||
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|
||||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
|
||||||
CXXLD = $(CXX)
|
|
||||||
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|
||||||
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
|
||||||
$(LDFLAGS) -o $@
|
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
|
|
@ -177,13 +168,22 @@ CCLD = $(CC)
|
||||||
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
||||||
$(LDFLAGS) -o $@
|
$(LDFLAGS) -o $@
|
||||||
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
|
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
|
CXXLD = $(CXX)
|
||||||
|
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||||
|
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
||||||
|
$(LDFLAGS) -o $@
|
||||||
SOURCES = $(libledger_la_SOURCES) $(nodist_libledger_la_SOURCES) \
|
SOURCES = $(libledger_la_SOURCES) $(nodist_libledger_la_SOURCES) \
|
||||||
$(libpyledger_la_SOURCES) $(PyUnitTests_SOURCES) \
|
$(libpyledger_la_SOURCES) PyUnitTests.c \
|
||||||
$(nodist_UnitTests_SOURCES) $(ledger_SOURCES) \
|
$(nodist_UnitTests_SOURCES) $(ledger_SOURCES) \
|
||||||
$(ledger_so_SOURCES)
|
$(ledger_so_SOURCES)
|
||||||
DIST_SOURCES = $(am__libledger_la_SOURCES_DIST) \
|
DIST_SOURCES = $(am__libledger_la_SOURCES_DIST) \
|
||||||
$(libpyledger_la_SOURCES) $(PyUnitTests_SOURCES) \
|
$(libpyledger_la_SOURCES) PyUnitTests.c $(ledger_SOURCES) \
|
||||||
$(ledger_SOURCES) $(am__ledger_so_SOURCES_DIST)
|
$(am__ledger_so_SOURCES_DIST)
|
||||||
am__dirstamp = $(am__leading_dot)dirstamp
|
am__dirstamp = $(am__leading_dot)dirstamp
|
||||||
INFO_DEPS = $(srcdir)/docs/ledger.info
|
INFO_DEPS = $(srcdir)/docs/ledger.info
|
||||||
am__TEXINFO_TEX_DIR = $(srcdir)
|
am__TEXINFO_TEX_DIR = $(srcdir)
|
||||||
|
|
@ -469,7 +469,7 @@ all: $(BUILT_SOURCES) acconf.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .cc .dvi .lo .o .obj .ps
|
.SUFFIXES: .c .cc .dvi .lo .o .obj .ps
|
||||||
am--refresh:
|
am--refresh:
|
||||||
@:
|
@:
|
||||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
|
@ -609,6 +609,7 @@ mostlyclean-compile:
|
||||||
distclean-compile:
|
distclean-compile:
|
||||||
-rm -f *.tab.c
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PyUnitTests.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-UnitTests.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-UnitTests.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-t_amount.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-t_amount.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-t_balance.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UnitTests-t_balance.Po@am__quote@
|
||||||
|
|
@ -654,6 +655,27 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/py_utils.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/py_utils.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyledger.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyledger.Po@am__quote@
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.c.obj:
|
||||||
|
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
|
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.c.lo:
|
||||||
|
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
.cc.o:
|
.cc.o:
|
||||||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
|
@ -1885,18 +1907,18 @@ dist-hook:
|
||||||
@HAVE_BOOST_PYTHON_TRUE@ PYLIBS="$(PYLIBS)" SRCDIR="$(srcdir)" \
|
@HAVE_BOOST_PYTHON_TRUE@ PYLIBS="$(PYLIBS)" SRCDIR="$(srcdir)" \
|
||||||
@HAVE_BOOST_PYTHON_TRUE@ python $(srcdir)/setup.py install --prefix=$(prefix)
|
@HAVE_BOOST_PYTHON_TRUE@ python $(srcdir)/setup.py install --prefix=$(prefix)
|
||||||
|
|
||||||
PyUnitTests: $(srcdir)/tests/python/PyUnitTests.py
|
PyUnitTests.py: $(srcdir)/tests/python/PyUnitTests.py
|
||||||
cat $(srcdir)/tests/python/PyUnitTests.py \
|
cat $(srcdir)/tests/python/PyUnitTests.py \
|
||||||
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
||||||
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
||||||
chmod 755 $@
|
chmod 755 $@
|
||||||
|
|
||||||
fullcheck: check
|
fullcheck: check
|
||||||
MallocGuardEdges=1 \
|
MallocGuardEdges=1 \
|
||||||
MallocScribble=1 \
|
MallocScribble=1 \
|
||||||
MallocPreScribble=1 \
|
MallocPreScribble=1 \
|
||||||
MallocCheckHeapStart=100 \
|
MallocCheckHeapStart=100 \
|
||||||
MallocCheckHeapEach=100 \
|
MallocCheckHeapEach=100 \
|
||||||
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib \
|
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib \
|
||||||
$(srcdir)/valgrind.sh $(top_builddir)/UnitTests --verify
|
$(srcdir)/valgrind.sh $(top_builddir)/UnitTests --verify
|
||||||
|
|
||||||
|
|
|
||||||
15
acprep
15
acprep
|
|
@ -11,18 +11,11 @@ PYTHON_HOME="/Library/Frameworks/Python.framework/Versions/2.5"
|
||||||
# linker flags for all the various build permutations I use for
|
# linker flags for all the various build permutations I use for
|
||||||
# testing and profiling.
|
# testing and profiling.
|
||||||
|
|
||||||
LIBTOOLIZE=$(which glibtoolize 2>&1)
|
cmd=$(which glibtoolize 2>&1)
|
||||||
|
if [ -x "$cmd" ]; then
|
||||||
if [ -x "$LIBTOOLIZE" ]; then
|
export LIBTOOLIZE="$cmd"
|
||||||
"$LIBTOOLIZE" --automake -f -c
|
|
||||||
else
|
|
||||||
libtoolize --automake -f -c
|
|
||||||
fi
|
fi
|
||||||
|
autoreconf --install
|
||||||
aclocal
|
|
||||||
autoheader
|
|
||||||
automake -a -c -f
|
|
||||||
autoconf
|
|
||||||
|
|
||||||
|
|
||||||
INCDIRS="-I/usr/local/include"
|
INCDIRS="-I/usr/local/include"
|
||||||
|
|
|
||||||
6
configure
vendored
6
configure
vendored
|
|
@ -19761,11 +19761,7 @@ fi
|
||||||
# [boost_signals_save_libs=$LIBS
|
# [boost_signals_save_libs=$LIBS
|
||||||
# LIBS="-lboost_signals$BOOST_SUFFIX $LIBS"
|
# LIBS="-lboost_signals$BOOST_SUFFIX $LIBS"
|
||||||
# AC_LANG_PUSH(C++)
|
# AC_LANG_PUSH(C++)
|
||||||
# AC_TRY_LINK(
|
# AC_LINK_IFELSE([AC_LANG_PROGRAM([[# #include <boost/signal.hpp>]], [[# boost::signal<void (void)> this_signal;]])],[# boost_signals_cpplib_avail=true],[# boost_signals_cpplib_avail=false])
|
||||||
# [#include <boost/signal.hpp>],
|
|
||||||
# [boost::signal<void (void)> this_signal;],
|
|
||||||
# [boost_signals_cpplib_avail=true],
|
|
||||||
# [boost_signals_cpplib_avail=false])
|
|
||||||
# AC_LANG_POP
|
# AC_LANG_POP
|
||||||
# LIBS=$boost_signals_save_libs])
|
# LIBS=$boost_signals_save_libs])
|
||||||
#
|
#
|
||||||
|
|
|
||||||
98
configure.in
98
configure.in
|
|
@ -1,9 +1,9 @@
|
||||||
# -*- Autoconf -*-
|
# -*- Autoconf -*-
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.61)
|
||||||
|
|
||||||
AC_INIT(ledger, 3.0-git, johnw@newartisans.com)
|
AC_INIT([ledger],[3.0-git],[johnw@newartisans.com])
|
||||||
AC_CONFIG_SRCDIR(ledger)
|
AC_CONFIG_SRCDIR(ledger)
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
|
|
@ -61,14 +61,12 @@ AC_CACHE_CHECK(
|
||||||
[if pipes can be used],
|
[if pipes can be used],
|
||||||
[pipes_avail],
|
[pipes_avail],
|
||||||
[AC_LANG_PUSH(C++)
|
[AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
|
||||||
[#include <sys/types.h>
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>],
|
#include <stdio.h>]], [[int status, pfd[2];
|
||||||
[int status, pfd[2];
|
|
||||||
status = pipe(pfd);
|
status = pipe(pfd);
|
||||||
status = fork();
|
status = fork();
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
|
@ -86,9 +84,7 @@ AC_CACHE_CHECK(
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
close(pfd[0]);
|
close(pfd[0]);
|
||||||
}],
|
}]])],[pipes_avail=true],[pipes_avail=false])
|
||||||
[pipes_avail=true],
|
|
||||||
[pipes_avail=false])
|
|
||||||
AC_LANG_POP])
|
AC_LANG_POP])
|
||||||
|
|
||||||
if [test x$pipes_avail = xtrue ]; then
|
if [test x$pipes_avail = xtrue ]; then
|
||||||
|
|
@ -102,11 +98,7 @@ AC_CACHE_CHECK(
|
||||||
[boost_regex_save_libs=$LIBS
|
[boost_regex_save_libs=$LIBS
|
||||||
LIBS="-lboost_regex$BOOST_SUFFIX $LIBS"
|
LIBS="-lboost_regex$BOOST_SUFFIX $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/regex.hpp>]], [[boost::regex foo_regexp("Hello, world!");]])],[boost_regex_avail=true],[boost_regex_avail=false])
|
||||||
[#include <boost/regex.hpp>],
|
|
||||||
[boost::regex foo_regexp("Hello, world!");],
|
|
||||||
[boost_regex_avail=true],
|
|
||||||
[boost_regex_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$boost_regex_save_libs])
|
LIBS=$boost_regex_save_libs])
|
||||||
|
|
||||||
|
|
@ -123,8 +115,7 @@ AC_CACHE_CHECK(
|
||||||
[boost_date_time_save_libs=$LIBS
|
[boost_date_time_save_libs=$LIBS
|
||||||
LIBS="-lboost_date_time$BOOST_SUFFIX $LIBS"
|
LIBS="-lboost_date_time$BOOST_SUFFIX $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/date_time/posix_time/posix_time.hpp>
|
||||||
[#include <boost/date_time/posix_time/posix_time.hpp>
|
|
||||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||||
#include <boost/date_time/local_time_adjustor.hpp>
|
#include <boost/date_time/local_time_adjustor.hpp>
|
||||||
#include <boost/date_time/time_duration.hpp>
|
#include <boost/date_time/time_duration.hpp>
|
||||||
|
|
@ -137,15 +128,12 @@ AC_CACHE_CHECK(
|
||||||
inline ptime time_to_system_local(const ptime& when) {
|
inline ptime time_to_system_local(const ptime& when) {
|
||||||
struct std::tm tm_gmt = to_tm(when);
|
struct std::tm tm_gmt = to_tm(when);
|
||||||
return from_time_t(mktime(&tm_gmt));
|
return from_time_t(mktime(&tm_gmt));
|
||||||
}],
|
}]], [[ptime t10 = ptime(boost::gregorian::from_string("2007-01-15"),
|
||||||
[ptime t10 = ptime(boost::gregorian::from_string("2007-01-15"),
|
|
||||||
ptime::time_duration_type());
|
ptime::time_duration_type());
|
||||||
|
|
||||||
ptime t12 = time_to_system_local(t10);
|
ptime t12 = time_to_system_local(t10);
|
||||||
|
|
||||||
return t10 != t12;],
|
return t10 != t12;]])],[boost_date_time_cpplib_avail=true],[boost_date_time_cpplib_avail=false])
|
||||||
[boost_date_time_cpplib_avail=true],
|
|
||||||
[boost_date_time_cpplib_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$boost_date_time_save_libs])
|
LIBS=$boost_date_time_save_libs])
|
||||||
|
|
||||||
|
|
@ -162,11 +150,7 @@ AC_CACHE_CHECK(
|
||||||
[boost_filesystem_save_libs=$LIBS
|
[boost_filesystem_save_libs=$LIBS
|
||||||
LIBS="-lboost_filesystem$BOOST_SUFFIX $LIBS"
|
LIBS="-lboost_filesystem$BOOST_SUFFIX $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/filesystem/path.hpp>]], [[boost::filesystem::path this_path("Hello");]])],[boost_filesystem_cpplib_avail=true],[boost_filesystem_cpplib_avail=false])
|
||||||
[#include <boost/filesystem/path.hpp>],
|
|
||||||
[boost::filesystem::path this_path("Hello");],
|
|
||||||
[boost_filesystem_cpplib_avail=true],
|
|
||||||
[boost_filesystem_cpplib_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$boost_filesystem_save_libs])
|
LIBS=$boost_filesystem_save_libs])
|
||||||
|
|
||||||
|
|
@ -183,11 +167,7 @@ fi
|
||||||
# [boost_signals_save_libs=$LIBS
|
# [boost_signals_save_libs=$LIBS
|
||||||
# LIBS="-lboost_signals$BOOST_SUFFIX $LIBS"
|
# LIBS="-lboost_signals$BOOST_SUFFIX $LIBS"
|
||||||
# AC_LANG_PUSH(C++)
|
# AC_LANG_PUSH(C++)
|
||||||
# AC_TRY_LINK(
|
# AC_LINK_IFELSE([AC_LANG_PROGRAM([[# #include <boost/signal.hpp>]], [[# boost::signal<void (void)> this_signal;]])],[# boost_signals_cpplib_avail=true],[# boost_signals_cpplib_avail=false])
|
||||||
# [#include <boost/signal.hpp>],
|
|
||||||
# [boost::signal<void (void)> this_signal;],
|
|
||||||
# [boost_signals_cpplib_avail=true],
|
|
||||||
# [boost_signals_cpplib_avail=false])
|
|
||||||
# AC_LANG_POP
|
# AC_LANG_POP
|
||||||
# LIBS=$boost_signals_save_libs])
|
# LIBS=$boost_signals_save_libs])
|
||||||
#
|
#
|
||||||
|
|
@ -204,13 +184,9 @@ AC_CACHE_CHECK(
|
||||||
[libgmp_save_libs=$LIBS
|
[libgmp_save_libs=$LIBS
|
||||||
LIBS="-lgmp $LIBS"
|
LIBS="-lgmp $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gmp.h>]], [[mpz_t bar;
|
||||||
[#include <gmp.h>],
|
|
||||||
[mpz_t bar;
|
|
||||||
mpz_init(bar);
|
mpz_init(bar);
|
||||||
mpz_clear(bar);],
|
mpz_clear(bar);]])],[libgmp_avail=true],[libgmp_avail=false])
|
||||||
[libgmp_avail=true],
|
|
||||||
[libgmp_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$libgmp_save_libs])
|
LIBS=$libgmp_save_libs])
|
||||||
|
|
||||||
|
|
@ -238,15 +214,11 @@ if [test x$xml = xtrue ]; then
|
||||||
[libexpat_save_libs=$LIBS
|
[libexpat_save_libs=$LIBS
|
||||||
LIBS="-lexpat $LIBS"
|
LIBS="-lexpat $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
|
||||||
[#include <stdio.h>
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <expat.h> // expat XML parser
|
#include <expat.h> // expat XML parser
|
||||||
}],
|
}]], [[XML_Parser parser = XML_ParserCreate(NULL);
|
||||||
[XML_Parser parser = XML_ParserCreate(NULL);
|
return parser != NULL;]])],[libexpat_avail=true],[libexpat_avail=false])
|
||||||
return parser != NULL;],
|
|
||||||
[libexpat_avail=true],
|
|
||||||
[libexpat_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$libexpat_save_libs])
|
LIBS=$libexpat_save_libs])
|
||||||
|
|
||||||
|
|
@ -268,15 +240,11 @@ if [test x$xml = xtrue ]; then
|
||||||
[libxmlparse_save_libs=$LIBS
|
[libxmlparse_save_libs=$LIBS
|
||||||
LIBS="-lxmlparse -lxmltok $LIBS"
|
LIBS="-lxmlparse -lxmltok $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
|
||||||
[#include <stdio.h>
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <xmlparse.h> // expat XML parser
|
#include <xmlparse.h> // expat XML parser
|
||||||
}],
|
}]], [[XML_Parser parser = XML_ParserCreate(NULL);
|
||||||
[XML_Parser parser = XML_ParserCreate(NULL);
|
return parser != NULL;]])],[libxmlparse_avail=true],[libxmlparse_avail=false])
|
||||||
return parser != NULL;],
|
|
||||||
[libxmlparse_avail=true],
|
|
||||||
[libxmlparse_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$libxmlparse_save_libs])
|
LIBS=$libxmlparse_save_libs])
|
||||||
|
|
||||||
|
|
@ -311,11 +279,7 @@ if [test x$ofx = xtrue ]; then
|
||||||
[libofx_save_libs=$LIBS
|
[libofx_save_libs=$LIBS
|
||||||
LIBS="-lofx $LIBS"
|
LIBS="-lofx $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <libofx.h>]], [[ LibofxContextPtr libofx_context = libofx_get_new_context();]])],[libofx_avail=true],[libofx_avail=false])
|
||||||
[#include <libofx.h>],
|
|
||||||
[ LibofxContextPtr libofx_context = libofx_get_new_context();],
|
|
||||||
[libofx_avail=true],
|
|
||||||
[libofx_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$libofx_save_libs])
|
LIBS=$libofx_save_libs])
|
||||||
|
|
||||||
|
|
@ -349,16 +313,12 @@ if [test x$python = xtrue ]; then
|
||||||
[boost_python_save_libs=$LIBS
|
[boost_python_save_libs=$LIBS
|
||||||
LIBS="-lboost_python$BOOST_SUFFIX -lpython$PYTHON_VERSION $LIBS"
|
LIBS="-lboost_python$BOOST_SUFFIX -lpython$PYTHON_VERSION $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/python.hpp>
|
||||||
[#include <boost/python.hpp>
|
|
||||||
using namespace boost::python;
|
using namespace boost::python;
|
||||||
class foo {};
|
class foo {};
|
||||||
BOOST_PYTHON_MODULE(samp) {
|
BOOST_PYTHON_MODULE(samp) {
|
||||||
class_< foo > ("foo") ;
|
class_< foo > ("foo") ;
|
||||||
}],
|
}]], [[return 0]])],[boost_python_cpplib_avail=true],[boost_python_cpplib_avail=false])
|
||||||
[return 0],
|
|
||||||
[boost_python_cpplib_avail=true],
|
|
||||||
[boost_python_cpplib_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$boost_python_save_libs])
|
LIBS=$boost_python_save_libs])
|
||||||
|
|
||||||
|
|
@ -382,19 +342,15 @@ AC_CACHE_CHECK(
|
||||||
[cppunit_save_libs=$LIBS
|
[cppunit_save_libs=$LIBS
|
||||||
LIBS="-lcppunit $LIBS"
|
LIBS="-lcppunit $LIBS"
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cppunit/CompilerOutputter.h>
|
||||||
[#include <cppunit/CompilerOutputter.h>
|
|
||||||
#include <cppunit/TestResult.h>
|
#include <cppunit/TestResult.h>
|
||||||
#include <cppunit/TestResultCollector.h>
|
#include <cppunit/TestResultCollector.h>
|
||||||
#include <cppunit/TestRunner.h>
|
#include <cppunit/TestRunner.h>
|
||||||
#include <cppunit/TextTestProgressListener.h>
|
#include <cppunit/TextTestProgressListener.h>
|
||||||
#include <cppunit/BriefTestProgressListener.h>
|
#include <cppunit/BriefTestProgressListener.h>
|
||||||
#include <cppunit/XmlOutputter.h>
|
#include <cppunit/XmlOutputter.h>
|
||||||
#include <cppunit/extensions/TestFactoryRegistry.h>],
|
#include <cppunit/extensions/TestFactoryRegistry.h>]], [[CPPUNIT_NS::TestResult controller;
|
||||||
[CPPUNIT_NS::TestResult controller;
|
CPPUNIT_NS::TestResultCollector result;]])],[cppunit_avail=true],[cppunit_avail=false])
|
||||||
CPPUNIT_NS::TestResultCollector result;],
|
|
||||||
[cppunit_avail=true],
|
|
||||||
[cppunit_avail=false])
|
|
||||||
AC_LANG_POP
|
AC_LANG_POP
|
||||||
LIBS=$cppunit_save_libs])
|
LIBS=$cppunit_save_libs])
|
||||||
|
|
||||||
|
|
@ -405,8 +361,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_STDC_HEADERS
|
AC_HEADER_STDC
|
||||||
AC_HAVE_HEADERS(sys/stat.h langinfo.h)
|
AC_CHECK_HEADERS([sys/stat.h langinfo.h])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
|
|
|
||||||
12
verify.sh
12
verify.sh
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TMPDIR=$HOME/tmp
|
if [ -d $HOME/tmp ]; then
|
||||||
|
TMPDIR=$HOME/tmp
|
||||||
|
else
|
||||||
|
TMPDIR=/tmp
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d $TMPDIR/ledger ]; then
|
if [ -d $TMPDIR/ledger ]; then
|
||||||
sudo rm -fr $TMPDIR/ledger || exit 1
|
sudo rm -fr $TMPDIR/ledger || exit 1
|
||||||
|
|
@ -12,11 +16,9 @@ else
|
||||||
LEDGER_GIT=http://newartisans.com/ledger.git
|
LEDGER_GIT=http://newartisans.com/ledger.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $TMPDIR
|
cd $TMPDIR || exit 1
|
||||||
|
|
||||||
mkdir ledger || exit 1
|
mkdir ledger || exit 1
|
||||||
|
cd ledger || exit 1
|
||||||
cd ledger
|
|
||||||
git clone $LEDGER_GIT local_git || exit 1
|
git clone $LEDGER_GIT local_git || exit 1
|
||||||
|
|
||||||
git clone -l local_git distcheck || exit 1
|
git clone -l local_git distcheck || exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue