Re: Compiler characteristics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




How do you test to see if the compiler supports a given option?

Specifically, gcc -municode

i would do that:

CFLAGS_save="${CFLAGS}"
CFLAGS="${CFLAGS} -municode"
AC_COMPILE_IFELSE(
   [AC_LANG_PROGRAM([[]])],
   [have_unicode="yes"],
   [have_unicode="no"])
AC_MSG_CHECKING([whether the compiler supports -municode])
AC_MSG_RESULT([${have_unicode}])
CFLAGS="${CFLAGS_save}"

Vincent Torri


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux