#!/usr/bin/env python

#
# skip this test when FFTW_DIR is not set or we're using pgi (JIRA 195).
#
# See JIRA 195 for more info on why we skip with pgi:
#    https://chapel.atlassian.net/browse/CHAPEL-195
#

import os

missing_fftw_dir = 'FFTW_DIR' not in os.environ
using_pgi = 'pgi' in os.getenv('CHPL_TARGET_COMPILER')

print(missing_fftw_dir or using_pgi)
