+dnl Check if pod2man, pod2text take --stderr and -u options (not in RHEL 5).
+AC_MSG_CHECKING([if pod2man takes --stderr option])
+if "$POD2MAN" --stderr >/dev/null 2>&1; then
+ AC_MSG_RESULT([yes])
+ POD2_STDERR_OPTION="--stderr"
+else
+ AC_MSG_RESULT([no])
+ POD2_STDERR_OPTION=""
+fi
+AC_SUBST([POD2_STDERR_OPTION])
+
+AC_MSG_CHECKING([if pod2man takes -u option])
+if "$POD2MAN" -u >/dev/null 2>&1; then
+ AC_MSG_RESULT([yes])
+ POD2_UTF8_OPTION="-u"
+else
+ AC_MSG_RESULT([no])
+ POD2_UTF8_OPTION=""
+fi
+AC_SUBST([POD2_UTF8_OPTION])
+