Restructured the logic that resets HAVE_X_GRAPHICS variable to OFF so that it is more reliable on platforms where any of the dependencies:   X11, MOTIF, Xpm, threads are NOT found.
Restructured the logic that resets HAVE_X_GRAPHICS variable to OFF so that
it is more reliable on platforms where any of the dependencies:
  X11, MOTIF, Xpm, threads
are NOT found.

Request review by Brian Adams.



git-svn-id: dcef21d3ff4cbd8dced82702dcaad637bf246ecc@437 aa0779c3-6ec2-4b84-a212-a405c134cd8d

pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA