$OpenBSD: patch-a2x,v 1.2 2008/11/10 11:58:34 pea Exp $
--- a2x.orig	Wed Jul  2 03:12:42 2008
+++ a2x	Mon Nov 10 09:43:01 2008
@@ -236,14 +236,14 @@ function parse_options()
     if [ -z "$*" ]; then
         help; exit 0
     fi
-    require "getopt"
-    getopt -T >/dev/null
+    require "gnugetopt"
+    gnugetopt -T >/dev/null
     if [ $? -ne 4 ]; then
         quit "enhanced getopt(1) required"
     fi
     short_opts="a:d:D:f:hnsv"
     long_opts="attribute:,asciidoc-opts:,destination-dir:,doctype:,help,icons-dir:,dry-run,format:,copy,icons,skip-asciidoc,stylesheet:,version,verbose,xsltproc-opts:,dblatex-opts:,fop-opts:"
-    args=$(getopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/dev/null)
+    args=$(gnugetopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/dev/null)
     if [ $? -ne 0 ]; then
         quit "invalid command options, run: a2x --help"
     fi
