You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/03/20 07:11:53 UTC

svn commit: r387146 - in /webservices/axis2/trunk/c/samples: autogen.sh build.sh configure.ac

Author: damitha
Date: Sun Mar 19 22:11:52 2006
New Revision: 387146

URL: http://svn.apache.org/viewcvs?rev=387146&view=rev
Log:
seperate build system for sampels 

Added:
    webservices/axis2/trunk/c/samples/autogen.sh   (with props)
    webservices/axis2/trunk/c/samples/build.sh
    webservices/axis2/trunk/c/samples/configure.ac

Added: webservices/axis2/trunk/c/samples/autogen.sh
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/autogen.sh?rev=387146&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/autogen.sh (added)
+++ webservices/axis2/trunk/c/samples/autogen.sh Sun Mar 19 22:11:52 2006
@@ -0,0 +1,14 @@
+#!/bin/bash
+  
+for i in libtoolize aclocal autoconf autoheader
+do
+    echo -n "Running $i..."
+    $i || exit 1
+    echo 'done.'
+done
+  
+echo -n 'Running automake...'
+automake --add-missing
+echo 'done.'
+exit 0
+

Propchange: webservices/axis2/trunk/c/samples/autogen.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/samples/build.sh
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/build.sh?rev=387146&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/build.sh (added)
+++ webservices/axis2/trunk/c/samples/build.sh Sun Mar 19 22:11:52 2006
@@ -0,0 +1,5 @@
+#!/bin/bash
+./autogen.sh
+./configure --prefix=${AXIS2C_HOME}
+make
+make install

Added: webservices/axis2/trunk/c/samples/configure.ac
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/configure.ac?rev=387146&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/configure.ac (added)
+++ webservices/axis2/trunk/c/samples/configure.ac Sun Mar 19 22:11:52 2006
@@ -0,0 +1,58 @@
+dnl run autogen.sh to generate the configure script.
+
+AC_PREREQ(2.59)
+
+AC_INIT(axis2c-src, M0.5)
+AC_CANONICAL_SYSTEM
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+AC_PREFIX_DEFAULT(/usr/local/axis2c/samples)
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_CPP
+AM_PROG_LIBTOOL
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+dnl Checks for libraries.
+AC_CHECK_LIB(dl, dlopen)
+
+CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE"
+LDFLAGS="-lpthread"
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+dnl Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+
+PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
+CFLAGS="$CFLAGS $LIBXML2_CFLAGS $GUTHTHILA_CFLAGS"
+
+AC_SUBST(LIBXML2_CFLAGS)
+AC_SUBST(LIBXML2_LIBS)
+AC_SUBST(LIBXML2_DIR)
+AC_SUBST(GUTHTHILA_DIR)
+AC_SUBST(GUTHTHILA_LIBS)
+
+AC_CONFIG_FILES([Makefile \
+    server/Makefile \
+    server/echo/Makefile \
+    server/math/Makefile \
+    client/Makefile \
+    client/echo/Makefile \
+    client/math/Makefile \
+    client/addr_echo/Makefile \
+    client/echo_non_blocking/Makefile \
+    client/google/Makefile \
+    ])
+    
+AC_OUTPUT