You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
383 B

  1. dnl based on http://www.gnu.org/software/ac-archive/htmldoc/ac_check_cc_opt.html
  2. dnl from Guido Draheim <guidod@gmx.de>
  3. AC_DEFUN([AC_CHECK_CXX_FLAG],
  4. [AC_MSG_CHECKING([whether ${CXX} accepts $1])
  5. echo 'int main(){}' > conftest.c
  6. if test -z "`${CXX} $1 -o conftest conftest.c 2>&1`"; then
  7. $2="${$2} $1"
  8. echo "yes"
  9. else
  10. echo "no"
  11. $3
  12. fi
  13. dnl echo "$2=${$2}"
  14. rm -f conftest*
  15. ])