mirror of https://gerrit.osmocom.org/asn1c
proper way of doing things
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@416 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
275e5fda84
commit
ee2e9c5509
|
@ -21401,11 +21401,16 @@ mingw* | p32*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check whether --enable-autoconf or --disable-autoconf was given.
|
# Check whether --enable-Werror or --disable-Werror was given.
|
||||||
if test "${enable_autoconf+set}" = set; then
|
if test "${enable_Werror+set}" = set; then
|
||||||
enableval="$enable_autoconf"
|
enableval="$enable_Werror"
|
||||||
ADD_CFLAGS="-Werror -W -Wpointer-arith"
|
enable_werror=$enableval
|
||||||
|
else
|
||||||
|
enable_werror=no
|
||||||
fi;
|
fi;
|
||||||
|
if test x$enable_werror = xyes; then
|
||||||
|
ADD_CFLAGS="-Werror -W -Wpointer-arith"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
case "$GCC" in
|
case "$GCC" in
|
||||||
|
|
|
@ -49,11 +49,11 @@ mingw* | p32*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_ARG_ENABLE(autoconf,
|
AC_ARG_ENABLE(Werror,
|
||||||
[ --enable-Werror abort compilation after any C compiler warning],
|
[ --enable-Werror abort compilation after any C compiler warning],
|
||||||
enable_werror=$enableval, enable_werror=no)
|
enable_werror=$enableval, enable_werror=no)
|
||||||
if test x$enable_werror = xyes; then
|
if test x$enable_werror = xyes; then
|
||||||
ADD_CFLAGS="-Werror -W -Wpointer-arith")
|
ADD_CFLAGS="-Werror -W -Wpointer-arith"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(ADD_CFLAGS)
|
AC_SUBST(ADD_CFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue