+AC_ARG_ENABLE(ps,
+ [AC_HELP_STRING([--disable-ps], [Compile without PostScript backend])],enable_ps=$enableval,enable_ps="yes")
+
+if test x$enable_ps = xyes; then
+ AC_DEFINE([ENABLE_PS], [1], [Enable support for PostScript files.])
+fi
+
+AM_CONDITIONAL(ENABLE_PS, test x$enable_ps = xyes)
+
+if test x$enable_ps = xyes; then
+AC_ARG_WITH(gs,
+ [AC_HELP_STRING([--with-gs=dir], [Directory Where GhostScript package is installed.])])