Quantcast

[PATCH] Fix autoconf build warrings in wsmancli

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Fix autoconf build warrings in wsmancli

Prabhakar_Pujeri
Signed-off-by: prabhakar pujeri <[hidden email]>
---
 configure.ac            | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
 configure.in            | 63 -------------------------------------------------
 tests/cunit/Makefile.am |  3 +--
 3 files changed, 64 insertions(+), 65 deletions(-)
 create mode 100644 configure.ac
 delete mode 100644 configure.in

diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..f432b5c
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,63 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT(wsmancli, 2.3.2)
+AC_CONFIG_SRCDIR(wsmancli.spec.in)
+AM_INIT_AUTOMAKE([subdir-objects])
+AM_CONFIG_HEADER(config.h)
+AM_MAINTAINER_MODE
+
+AC_ISC_POSIX
+AC_PROG_CC
+AC_PROG_CXX
+AM_PROG_CC_STDC
+AC_HEADER_STDC
+AM_PROG_LIBTOOL
+
+WSMAN_PKG=$PACKAGE_NAME
+AC_SUBST(WSMAN_PKG)
+PACKAGE_BUILDTS=`date +%Y%m%d%H%M`
+AC_SUBST(PACKAGE_BUILDTS)
+
+PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.2.7])
+have_cunit=no
+AC_CHECK_HEADERS([CUnit/Basic.h], have_cunit="yes" )
+AM_CONDITIONAL(BUILD_CUNIT_TESTS, test "$have_cunit" == "yes")
+
+examples_default=no
+AC_ARG_WITH(examples,
+ [  --with-examples=[no/yes] build examples [default=no]],,
+              with_examples=$examples_default)
+AM_CONDITIONAL(BUILD_EXAMPLES, test "x$with_examples" = "xyes")
+tests_default=no
+AC_ARG_WITH(tests,
+ [  --with-tests=[no/yes] build tests [default=no]],,
+              with_tests=$tests_default)
+AM_CONDITIONAL(BUILD_TESTS, test "x$with_tests" = "xyes")
+
+dnl *************************************
+dnl *** Warnings to show if using GCC ***
+dnl *************************************
+
+AC_ARG_ENABLE(more-warnings,
+      [  --disable-more-warnings  Inhibit compiler warnings],
+      set_more_warnings=no)
+
+if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
+ CFLAGS="$CFLAGS \
+ -Wall -Wstrict-prototypes -Wmissing-declarations \
+ -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
+                -Wunused -Werror"
+fi
+
+AC_OUTPUT([
+ wsmancli.spec
+ Makefile
+ src/Makefile
+ examples/Makefile
+ examples/cpp/Makefile
+        tests/Makefile
+        tests/interop/Makefile
+        tests/cunit/Makefile
+        man/Makefile
+])
+
diff --git a/configure.in b/configure.in
deleted file mode 100644
index 0dba1db..0000000
--- a/configure.in
+++ /dev/null
@@ -1,63 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-
-AC_INIT(wsmancli, 2.3.2)
-AC_CONFIG_SRCDIR(wsmancli.spec.in)
-AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
-AM_CONFIG_HEADER(config.h)
-AM_MAINTAINER_MODE
-
-AC_ISC_POSIX
-AC_PROG_CC
-AC_PROG_CXX
-AM_PROG_CC_STDC
-AC_HEADER_STDC
-AM_PROG_LIBTOOL
-
-WSMAN_PKG=$PACKAGE_NAME
-AC_SUBST(WSMAN_PKG)
-PACKAGE_BUILDTS=`date +%Y%m%d%H%M`
-AC_SUBST(PACKAGE_BUILDTS)
-
-PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.2.7])
-have_cunit=no
-AC_CHECK_HEADERS([CUnit/Basic.h], have_cunit="yes" )
-AM_CONDITIONAL(BUILD_CUNIT_TESTS, test "$have_cunit" == "yes")
-
-examples_default=no
-AC_ARG_WITH(examples,
- [  --with-examples=[no/yes] build examples [default=no]],,
-              with_examples=$examples_default)
-AM_CONDITIONAL(BUILD_EXAMPLES, test "x$with_examples" = "xyes")
-tests_default=no
-AC_ARG_WITH(tests,
- [  --with-tests=[no/yes] build tests [default=no]],,
-              with_tests=$tests_default)
-AM_CONDITIONAL(BUILD_TESTS, test "x$with_tests" = "xyes")
-
-dnl *************************************
-dnl *** Warnings to show if using GCC ***
-dnl *************************************
-
-AC_ARG_ENABLE(more-warnings,
-      [  --disable-more-warnings  Inhibit compiler warnings],
-      set_more_warnings=no)
-
-if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
- CFLAGS="$CFLAGS \
- -Wall -Wstrict-prototypes -Wmissing-declarations \
- -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
-                -Wunused -Werror"
-fi
-
-AC_OUTPUT([
- wsmancli.spec
- Makefile
- src/Makefile
- examples/Makefile
- examples/cpp/Makefile
-        tests/Makefile
-        tests/interop/Makefile
-        tests/cunit/Makefile
-        man/Makefile
-])
-
diff --git a/tests/cunit/Makefile.am b/tests/cunit/Makefile.am
index f282adc..92a1bbb 100644
--- a/tests/cunit/Makefile.am
+++ b/tests/cunit/Makefile.am
@@ -1,7 +1,6 @@
 AM_CFLAGS = @CFLAGS@
 
-INCLUDES = \
-   $(OPENWSMAN_CFLAGS)
+AM_CFLAGS += $(OPENWSMAN_CFLAGS)
 
 
 wsman_cunit_tests_LDADD = \
--
2.4.0


------------------------------------------------------------------------------
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...