dnl Process this file with autoconf to produce a configure script.
-AC_INIT([GNU Enscript],[1.6.4.90],[bug-enscript@gnu.org])
+AC_INIT([GNU Enscript],[1.6.6],[bug-enscript@gnu.org])
AC_PREREQ([2.61])
AC_CONFIG_SRCDIR([src/gsint.h])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_USE_SYSTEM_EXTENSIONS
-AM_C_PROTOTYPES
AC_C_CONST
AC_FUNC_ALLOCA
MEDIA=$ac_cv_value_media
AC_SUBST(MEDIA)
+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)
+
dnl Find the printer spooler command.
AC_CHECK_PROG(SPOOLER, lpr, lpr)
echo "Option Change with configure's option Current value"
echo "---------------------------------------------------------"
echo "Media --with-media=MEDIA $MEDIA"
+echo "Encoding --with-encoding=ENCODING $ENCODING"
echo "Spooler --with-spooler=SPOOLER $SPOOLER"
echo "PS level --with-ps-level=LEVEL $PSLEVEL"
echo ""