[Groonga-commit] groonga/groonga [master] Build documents only with --enable-document option

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 18日 (水) 23:09:56 JST


Kouhei Sutou	2012-04-18 23:09:56 +0900 (Wed, 18 Apr 2012)

  New Revision: 9f1d95cc50dfe6299161366601bed6a07a66e6a1

  Log:
    Build documents only with --enable-document option

  Modified files:
    configure.ac

  Modified: configure.ac (+10 -10)
===================================================================
--- configure.ac    2012-04-18 14:26:34 +0900 (bfb44fa)
+++ configure.ac    2012-04-18 23:09:56 +0900 (764c9a5)
@@ -987,21 +987,21 @@ document_available=no
 document_buildable=no
 have_built_document=no
 if test x"$enable_document" != x"no"; then
-  AC_PATH_PROG(HG, hg, [])
-  if test -n "$HG"; then
+  if test -f "$srcdir/doc/build-stamp"; then
     document_available=yes
-    document_buildable=yes
-  else
-    if test -f "$srcdir/doc/build-stamp"; then
+    have_built_document=yes
+  if
+
+  if test x"$enable_document" = x"yes"; then
+    AC_PATH_PROG(HG, hg, [])
+    if test -n "$HG"; then
       document_available=yes
-      have_built_document=yes
+      document_buildable=yes
     else
-      if test x"$enable_document" = x"yes"; then
-	AC_MSG_ERROR("No hg found")
-      fi
+      AC_MSG_ERROR("No hg found")
     fi
+    AC_SUBST(HG)
   fi
-  AC_SUBST(HG)
 fi
 
 AM_CONDITIONAL([WITH_HG], [test -n "${HG}"])




Groonga-commit メーリングリストの案内
Back to archive index