C99 standard can now be disabled by configure using "--disable-std-c99" flag.

This commit is contained in:
Romuald Conty 2009-08-26 09:14:23 +00:00
parent b08951a43e
commit e05af04cce

View file

@ -88,7 +88,7 @@ case "$host" in
;;
*)
PKG_CHECK_MODULES(LIBPCSCLITE, libpcsclite, [WITH_PCSC=1], [WITH_PCSC=0])
if test "$WITH_PCSC" = "0" ; then
if test x"$WITH_PCSC" = "x0" ; then
AC_MSG_ERROR([libpcsclite is mandatory.])
fi
;;
@ -98,7 +98,16 @@ esac
fi
# Set C standard to C99
CFLAGS="$CFLAGS -std=c99"
# --disable-std-c99 support (default: no)
AC_ARG_ENABLE([std-c99],AS_HELP_STRING([--disable-pcsc-lite],[compile using C99 standard]),[enable_std_c99=$enableval],[enable_std_c99="yes"])
AC_MSG_CHECKING(for C99 support)
AC_MSG_RESULT($enable_std_c99)
if test x"$enable_std_c99" != "xno"
then
CFLAGS="$CFLAGS -std=c99"
fi
AC_CONFIG_FILES([
Makefile