% replaced by usepackage{ifpdf}
%\newif\ifpdf
%\ifx\pdfoutput\undefined
%   \pdffalse % we are not running PDFLaTeX
%\else
%   \ifnum\pdfoutput=0
%      \pdffalse  % we are not running PDFLaTeX
%   \else
%      \pdfoutput=1 \pdftrue  % we are running PDFLaTeX
%   \fi
%\fi

\documentclass[twoside]{article}

\usepackage{hevea}
\usepackage{a4}
\usepackage{calc}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{makeidx}
\usepackage{ifthen}
\usepackage{fancyhdr}
\usepackage{supertabular}
%\usepackage{longtable}

\usepackage{ifpdf}
%HEVEA \pdffalse

\ifpdf
	\usepackage[pdftex]{graphicx}
	\usepackage[pdftex=true]{hyperref}
	\hypersetup{%
	  pdftitle     = {GNU-Prolog Manual},
	  pdfsubject   = {GNU-Prolog Manual},
	  pdfkeywords  = {GNU-Prolog, Prolog, Finite Domain Constraints},
	  pdfauthor    = {Daniel Diaz}
	}
\else
	\usepackage[dvips]{graphics}
	\usepackage{epsfig}
\fi
