dnl #################################################################### dnl GP_PEDANTIC_COMPILER_FLAGS & Co. dnl #################################################################### dnl dnl dnl #################################################################### dnl _GP_CONDITIONAL_COMPILE_FLAGS(FLAG_VAR, FLAGS) dnl #################################################################### AC_DEFUN([_GP_CONDITIONAL_COMPILE_FLAGS], [dnl # BEGIN $0($@) AS_VAR_IF([$1], [], [dnl $1="$2" ], [dnl $1="[$]{$1} $2" ]) AC_MSG_CHECKING([whether $1="[$]$1" compiles]) AC_COMPILE_IFELSE([m4_case([$1], [CFLAGS], [dnl AC_LANG_SOURCE([[ #include int main(int argc, char *argv[]) { int i; /* Use argc and argv to prevent warning about unused function params */ for (i=0; i int main(int argc, char *argv[]) { int i; /* Use argc and argv to prevent warning about unused function params */ for (i=0; i