[milter-manager-commit] milter-manager/milter-manager at 85c5f63 [master] configure: Create Makefile for unused bundled ruby-glib2

Back to archive index

Kenji Okimoto null+****@clear*****
Fri Feb 17 13:48:05 JST 2017


Kenji Okimoto	2017-02-17 13:48:05 +0900 (Fri, 17 Feb 2017)

  New Revision: 85c5f6333e0908032abed25ddf18b6adc491dedc
  https://github.com/milter-manager/milter-manager/commit/85c5f6333e0908032abed25ddf18b6adc491dedc

  Message:
    configure: Create Makefile for unused bundled ruby-glib2

  Modified files:
    configure.ac

  Modified: configure.ac (+7 -4)
===================================================================
--- configure.ac    2017-02-17 13:12:43 +0900 (3ccd8be)
+++ configure.ac    2017-02-17 13:48:05 +0900 (9d20c10)
@@ -352,6 +352,7 @@ else
 fi
 
 bundled_latest_ruby_glib2_version=3.1.1
+bundled_available_ruby_glib2_versions="3.1.1 2.2.5"
 if test "$ruby_available" = "yes"; then
   rbconfig="$RUBY -rrbconfig -rshellwords -e "
 
@@ -577,15 +578,17 @@ EOM
     fi
   fi
 
-  if test "$ac_used_bundled_ruby_glib2_version" != "${bundled_latest_ruby_glib2_version}"; then
-    $RUBY -run -e mkdir -- -p binding/ruby/glib-${bundled_latest_ruby_glib2_version}
-    cat <<EOM > binding/ruby/glib-${bundled_latest_ruby_glib2_version}/Makefile
+  for bundled_available_ruby_glib2_version in ${bundled_available_ruby_glib2_versions}; do
+    if test "$ac_used_bundled_ruby_glib2_version" != "${bundled_available_ruby_glib2_version}"; then
+      $RUBY -run -e mkdir -- -p binding/ruby/glib-${bundled_available_ruby_glib2_version}
+      cat <<EOM > binding/ruby/glib-${bundled_available_ruby_glib2_version}/Makefile
 all:
 distdir:
 distclean:
 uninstall:
 EOM
-  fi
+    fi
+  done
 
   if test "$ruby_glib2_available" != "yes"; then
     AC_MSG_ERROR([Ruby/GLib2 is required.])
-------------- next part --------------
An HTML attachment was scrubbed...
下載 



More information about the milter-manager-commit mailing list
Back to archive index