AC_INIT([Distributed Computing API], [0.2], [podhorszki@sztaki.hu], [dcapi]) AC_CONFIG_MACRO_DIR([cf]) AC_CONFIG_HEADERS([include/config.h]) AC_CONFIG_AUX_DIR([scripts]) AC_CONFIG_SRCDIR([include/dc.h]) AM_INIT_AUTOMAKE([foreign]) AC_PROG_CC AC_DISABLE_SHARED AC_PROG_LIBTOOL LIBTOOL="$LIBTOOL --silent" if test "$ac_cv_c_compiler_gnu" = yes; then CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare ${CFLAGS}" CXXFLAGS="-Wall -Wsign-compare ${CXXFLAGS}" fi AC_ARG_ENABLE([client], AS_HELP_STRING([--disable-client], [do not build the client application]),, [enable_client=yes]) AC_ARG_ENABLE([master], AS_HELP_STRING([--disable-master], [do not build the master application]),, [enable_master=yes]) AM_PATH_GLIB_2_0([2.6.0],,[AC_MSG_ERROR([glib2 is missing])]) AM_CONDITIONAL([BUILD_CLIENT], [test "$enable_client" = yes]) AM_CONDITIONAL([BUILD_MASTER], [test "$enable_master" = yes]) AC_ARG_WITH([clgr], AS_HELP_STRING([--with-clgr@<:@=DIR@:>@], [Use ClusterGrid (installed in DIR)]),, [with_clgr=yes]) AC_ARG_ENABLE([local], AS_HELP_STRING([--enable-local], [Build local DC-API]),, [enable_local=yes]) if test "$enable_client" = yes; then SZDG_BOINC_CLIENT if test "$no_boinc" != yes; then AC_CHECK_HEADERS([uuid/uuid.h],, [AC_MSG_ERROR([libuuid headers are missing])]) AC_CHECK_LIB([uuid], [uuid_generate], [true], [AC_MSG_ERROR([libuuid is missing])]) fi fi if test "$enable_master" = yes; then SZDG_BOINC_SERVER fi AM_CONDITIONAL([WITH_BOINC], [test "$no_boinc" != yes]) AM_CONDITIONAL([WITH_CLGR], [test "$with_clgr" != no]) AM_CONDITIONAL([WITH_LOCAL], [test "$enable_local" == yes]) AC_CONFIG_FILES([Makefile \ include/Makefile \ common/Makefile \ boinc/Makefile \ local/Makefile \ clgr/Makefile]) AC_OUTPUT