minor improvements
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 14 Feb 2013 12:39:02 +0000 (12:39 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 14 Feb 2013 12:39:02 +0000 (12:39 +0000)
Makefile.am
configure.ac

index 9f30751..1ab2e2e 100644 (file)
@@ -15,3 +15,4 @@ SUBDIRS += @TOP_LEVEL_MODULES@
 
 install-exec-hook:
        if test "x@BUILD_SERVER@" = "xyes"; then LD_LIBRARY_PATH="$(DESTDIR)$(libdir)" $(DESTDIR)$(bindir)/nxmibc -d $(DESTDIR)$(pkgdatadir)/mibs -o $(DESTDIR)$(pkgdatadir)/mibs/netxms.mib; fi
+       if test "x@BUILD_SDK@" = "xyes"; then cp config.h $(DESTDIR)$(includedir); fi
index d13b86d..d7acabd 100644 (file)
@@ -46,6 +46,7 @@ BUILD_SERVER="no"
 BUILD_AGENT="no"
 BUILD_CLIENT="no"
 BUILD_STATIC_AGENT="no"
+BUILD_SDK="no"
 NEED_ZLIB="no"
 MODULES="libnetxms tools install"
 STATIC_SUBAGENT_LIST=""
@@ -128,6 +129,7 @@ AC_ARG_WITH(sdk,
 [
        TOP_LEVEL_MODULES="$TOP_LEVEL_MODULES include"
        SERVER_INCLUDE="include"
+       BUILD_SDK="yes"
 ])
 
 AC_ARG_WITH(mdebug,
@@ -2040,6 +2042,7 @@ AC_SUBST(CLIENT_COMPONENTS)
 AC_SUBST(STATIC_SUBAGENT_LIST)
 AC_SUBST(SUBAGENT_LIBS)
 AC_SUBST(BUILD_SERVER)
+AC_SUBST(BUILD_SDK)
 AC_SUBST(MYSQL_LIBS)
 AC_SUBST(PGSQL_LIBS)
 AC_SUBST(ORACLE_LIBS)