[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] combine gcc and g++ flag checks.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:48:50 JST 2012


Kouhei Sutou	2011-12-04 20:08:05 +0900 (Sun, 04 Dec 2011)

  New Revision: 6653b32887ad7bd340dfd2e529c266a02373bc9d
  https://github.com/mroonga/mroonga/commit/6653b32887ad7bd340dfd2e529c266a02373bc9d

  Log:
    combine gcc and g++ flag checks.

  Modified files:
    configure.ac

  Modified: configure.ac (+8 -7)
===================================================================
--- configure.ac    2011-12-04 19:50:24 +0900 (43b2893)
+++ configure.ac    2011-12-04 20:08:05 +0900 (481d0de)
@@ -54,14 +54,15 @@ AC_DEFUN([CHECK_CXXFLAG], [
   AC_MSG_RESULT([$check_cxxflag])
 ])
 
-if test "$GCC" = "yes"; then
-  CHECK_CFLAG([-Wall])
-  CHECK_CFLAG([-Wextra])
-  CHECK_CFLAG([-Wno-unused-parameter])
+AC_DEFUN([CHECK_BUILD_FLAG], [
+  CHECK_CFLAG([$1])
+  CHECK_CXXFLAG([$1])
+])
 
-  CHECK_CXXFLAG([-Wall])
-  CHECK_CXXFLAG([-Wextra])
-  CHECK_CXXFLAG([-Wno-unused-parameter])
+if test "$GCC" = "yes"; then
+  CHECK_BUILD_FLAG([-Wall])
+  CHECK_BUILD_FLAG([-Wextra])
+  CHECK_BUILD_FLAG([-Wno-unused-parameter])
 fi
 
 standalone_build=
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index