Guest User

Untitled

a guest
Jan 18th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $ ls TestPrograms/
  2. dump2def.cxx test_arm_sm4.cxx test_x86_avx.cxx
  3. test_32bit.cxx test_cxx.cxx test_x86_avx2.cxx
  4. test_64bit.cxx test_mixed_asm.cxx test_x86_avx512.cxx
  5. ...
  6.  
  7. $ cat test_cxx.cxx
  8. #include <string>
  9. int main(int argc, char* argv[])
  10. {
  11. unsigned int x=0;
  12. return x;
  13. }
  14.  
  15. CXXFLAGS="-msse2"
  16. AC_MSG_CHECKING([if $CXXNAME supports $CXXFLAGS and Foo Bar])
  17. AC_LINK_IFELSE(
  18. [AC_LANG_PROGRAM([TestPrograms/test_x86_sse2.cxx])],
  19. [AC_MSG_RESULT([yes])],
  20. [AC_MSG_RESULT([no])]
  21. )
  22.  
  23. checking if g++ supports -msse2 and Foo Bar... no
  24.  
  25. CXXFLAGS="-msse2"
  26. AC_MSG_CHECKING([if $CXXNAME supports $CXXFLAGS and Foo Bar])
  27. AC_LINK_IFELSE(
  28. [AC_LANG_PROGRAM(`cat TestPrograms/test_x86_sse2.cxx`)],
  29. [AC_MSG_RESULT([yes])],
  30. [AC_MSG_RESULT([no])]
  31. )
  32.  
  33. $ g++ -msse2 TestPrograms/test_x86_sse2.cxx
  34. $
Add Comment
Please, Sign In to add comment