Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ls TestPrograms/
- dump2def.cxx test_arm_sm4.cxx test_x86_avx.cxx
- test_32bit.cxx test_cxx.cxx test_x86_avx2.cxx
- test_64bit.cxx test_mixed_asm.cxx test_x86_avx512.cxx
- ...
- $ cat test_cxx.cxx
- #include <string>
- int main(int argc, char* argv[])
- {
- unsigned int x=0;
- return x;
- }
- CXXFLAGS="-msse2"
- AC_MSG_CHECKING([if $CXXNAME supports $CXXFLAGS and Foo Bar])
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([TestPrograms/test_x86_sse2.cxx])],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no])]
- )
- checking if g++ supports -msse2 and Foo Bar... no
- CXXFLAGS="-msse2"
- AC_MSG_CHECKING([if $CXXNAME supports $CXXFLAGS and Foo Bar])
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(`cat TestPrograms/test_x86_sse2.cxx`)],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no])]
- )
- $ g++ -msse2 TestPrograms/test_x86_sse2.cxx
- $
Add Comment
Please, Sign In to add comment