diff --git a/configure.in b/configure.in index e19209f..6221dc5 100644 --- a/configure.in +++ b/configure.in @@ -4751,7 +4751,9 @@ AC_SUBST(BSEND_OVERHEAD) # If we are either gcc or icc, see if we can use __asm__ # We test on prog_gcc to allow gcc by any name; if we are using # icc, the value of CC must be icc for this test to pass -if test "$ac_cv_prog_gcc" = "yes" -o "$ac_cv_prog_CC" = "icc" ; then +# FIXME checking for compiler name is a dirty hack and should not be used long-term +if test "$ac_cv_prog_gcc" = "yes" -o "$ac_cv_prog_CC" = "icc" \ + -o "$ac_cv_prog_CC" = "pgcc"; then AC_MSG_CHECKING([for gcc __asm__ and pentium cmpxchgl instruction]) AC_TRY_RUN([ int main(int argc, char *argv[]) @@ -4777,7 +4779,9 @@ if test "$lac_cv_use_atomic_updates" = "yes" ; then fi # check for x86_64 -if test "$ac_cv_prog_gcc" = "yes" ; then +# FIXME checking for compiler name is a dirty hack and should not be used long-term +if test "$ac_cv_prog_gcc" = "yes" -o "$ac_cv_prog_CC" = "icc" \ + -o "$ac_cv_prog_CC" = "pgcc"; then AC_MSG_CHECKING([for gcc __asm__ and AMD x86_64 cmpxchgq instruction]) AC_TRY_RUN([ int main(int argc, char *argv[])