+dnl Define the default input encoding.
+AC_ARG_WITH(encoding,
+[ --with-encoding(=ENCODING) use input encoding (ENCODING), default is latin1],
+ if test "X$withval" != "Xno"; then
+ if test "X$withval" = "Xyes"; then
+ ac_cv_value_encoding='latin1'
+ else
+ ac_cv_value_encoding=$withval
+ fi
+ else
+ ac_cv_value_encoding=${ENCODING-latin1}
+ fi,
+ ac_cv_value_encoding=${ENCODING-latin1}
+)
+ENCODING=$ac_cv_value_encoding
+AC_SUBST(ENCODING)
+