summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-14 22:41:10 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-14 22:41:10 -0500
commita86b387eea83d2d6fa3d30017695ef7cf8a3734a (patch)
treec7edfac5a9b3d21c2c73bef67041765aa94c9c73
Initial commit.
-rw-r--r--Makefile.in26
-rw-r--r--configure.ac49
-rw-r--r--source/main.cxx5
3 files changed, 80 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..a6e960c
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,26 @@
+EXEC=test
+
+BINDIR=@BINDIR@
+SRCDIR=@ROOTDIR@/source
+INCDIR=@ROOTDIR@/inc
+
+LDFLAGS= -lsal -lcppuhelpergcc3 -lcppu -L@OOO_INSTALL_PATH@/program
+CXXCPP=-I@UNOHEADER_PATH@ -I$(INCDIR)
+CXX_DEFINES= \
+ -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILITY_FEATURE
+
+CXXFLAGS= \
+ -DDEBUG -Wall -Wno-non-virtual-dtor -Wno-strict-aliasing -g -O0 \
+ $(CXX_DEFINES) \
+ $(CXXCPP)
+
+OBJFILES= \
+ main.o
+
+all: $(EXEC)
+
+$(EXEC): $(OBJFILES)
+ $(CXX) -o $@ $(OBJFILES) -lc
+
+main.o: $(SRCDIR)/main.cxx
+ $(CXX) -o $@ $(CXXFLAGS) -c $<
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..1d73de5
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,49 @@
+AC_INIT(scsolver.uno, 0.1, kyoshida@novell.com)
+
+AC_ARG_WITH(ooo,
+[
+ --with-ooo specify the base directory path of OO.o installation.
+
+ Example: --with-ooo=/usr/lib/ooo3],
+,)
+
+# Mandatory system library requirements first.
+
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_CHECK_HEADER(boost/shared_ptr.hpp, [],
+ [AC_MSG_ERROR(boost/shared_ptr.hpp not found. install boost)], [])
+AC_LANG_RESTORE
+
+ROOTDIR=.
+AC_SUBST(ROOTDIR)
+
+OBJDIR=./obj
+AC_SUBST(OBJDIR)
+
+OOO_INSTALL_PATH=$with_ooo
+AC_MSG_CHECKING([OOo installation])
+if test -f "$OOO_INSTALL_PATH/program/soffice.bin"; then
+ HAVE_OOO_INSTALL=yes
+ AC_MSG_RESULT([found])
+else
+ HAVE_OOO_INSTALL=no
+ AC_MSG_RESULT([not found])
+fi
+if test "z$HAVE_OOO_INSTALL" != "zyes"; then
+ AC_MSG_ERROR([The OOo installation is not found.])
+fi
+AC_SUBST(OOO_INSTALL_PATH)
+
+SOLVER_PATH=$OOO_INSTALL_PATH/solver
+UNOHEADER_PATH=$SOLVER_PATH/inc/offuh
+BINDIR=$SOLVER_PATH/bin
+AC_SUBST(OOO_SOLVER_PATH)
+AC_SUBST(UNOHEADER_PATH)
+AC_SUBST(BINDIR)
+
+RUNTIME_LIB_PATH=$OOO_INSTALL_PATH/program
+AC_SUBST(RUNTIME_LIB_PATH)
+
+AC_OUTPUT(Makefile)
+
diff --git a/source/main.cxx b/source/main.cxx
new file mode 100644
index 0000000..d04a801
--- /dev/null
+++ b/source/main.cxx
@@ -0,0 +1,5 @@
+
+int main()
+{
+
+}