*** empty log message ***
[m17n/m17n-db.git] / configure.ac
index 1a35779..582a228 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2003, 2004, 2005, 2006
+# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 #   National Institute of Advanced Industrial Science and Technology (AIST)
 #   Registration Number H15PRO112
 
 
 # You should have received a copy of the GNU Lesser General Public
 # License along with the m17n library; if not, write to the Free
-# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307, USA.
+# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
 
 # Process this file with autoconf to produce a configure script.
-AC_INIT(m17n-db, 1.3.4, bugs-m17n-lib@m17n.org)
-AM_INIT_AUTOMAKE(m17n-db, 1.3.4)
-AM_GNU_GETTEXT
+AC_INIT(m17n-db, 1.6.0, bugs-m17n-lib@m17n.org)
+AM_INIT_AUTOMAKE(m17n-db, 1.6.0)
+AM_GNU_GETTEXT([external])
 
 # Checks for programs.
 AC_PROG_INSTALL
 AC_PROG_AWK
 
+AC_CHECK_PROG(HAVE_MSGFMT, msgfmt, yes)
+if test "x$HAVE_MSGFMT" != "xyes"; then
+  echo "  Please install the program \"msgfmt\" in advance."
+  echo "  It is usually included in the package \"gettext\"."
+  exit 1;
+else :
+fi
+
 # Checks for source data files.
 AC_ARG_WITH(charmaps,
   [  --with-charmaps=DIR     Directory of source files for charset maps.],
@@ -62,11 +70,16 @@ if test "x$CHARMAPS" != "x"; then
 else :
 fi
 
-
 ICONS=`cd icons; echo *.png`
 AC_SUBST(ICONS)
 
-AC_CONFIG_FILES([Makefile mapconv m17n-db m17n-db.pc icons/Makefile po/Makefile.in])
+LANGNAME_TABLES=`cd LANGDATA; echo *.lnm`
+AC_SUBST(LANGNAME_TABLES)
+
+AC_CONFIG_FILES([Makefile mapconv m17n-db m17n-db.pc
+                icons/Makefile po/Makefile.in
+                FLT/Makefile MIM/Makefile LANGDATA/Makefile
+                ])
 AC_OUTPUT
 
 # Print configuration message.