f9f7780
--- efax-0.9/fax.orig	2005-10-10 11:05:57.000000000 +0200
f9f7780
+++ efax-0.9/fax	2005-10-10 11:08:01.000000000 +0200
f9f7780
@@ -60,9 +60,13 @@
f9f7780
 # The command to view a Portable Gray Map (PGM) image from the
f9f7780
 # standard input.  Typically "xv -" or "xloadimage stdin".
f9f7780
 
f9f7780
-VIEWCMD="xloadimage stdin"		# best
f9f7780
-# VIEWCMD="pnmtoxwd | xwud"		# slower alternative
f9f7780
-# VIEWCMD="xv -"			# much slower alternative	
f9f7780
+VIEWCMD="pnmtoxwd | xwud"
f9f7780
+if [ -x /usr/bin/display ] ; then
f9f7780
+  VIEWCMD="display -"
d85ba02
+elif [ -x /usr/bin/xloadimage -o -x /usr/X11R6/bin/xloadimage ] ; then
f9f7780
+   VIEWCMD="xloadimage stdin"  # best
f9f7780
+fi
f9f7780
+# VIEWCMD="xv -"        # much slower alternative
f9f7780
 
f9f7780
 # The name of the Ghostscript executable including full path if
f9f7780
 # necessary.  Only required if faxing Postscript files.