kopia lustrzana https://gitlab.com/sane-project/backends
2000-08-15 Henning Meier-Geinitz <hmg@gmx.de>
* configure configure.in: Default to --enable-warnings again.DEVEL_2_0_BRANCH-1
rodzic
438641c2fd
commit
6666417fba
|
@ -14,7 +14,7 @@ ac_default_prefix=/usr/local
|
|||
ac_help="$ac_help
|
||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
||||
ac_help="$ac_help
|
||||
--enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=no]"
|
||||
--enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=yes]"
|
||||
ac_help="$ac_help
|
||||
--enable-shared[=PKGS] build shared libraries [default=yes]"
|
||||
ac_help="$ac_help
|
||||
|
@ -1367,8 +1367,7 @@ NORMAL_CFLAGS="${CFLAGS} -W -Wall"
|
|||
WARN_CFLAGS="${CFLAGS} -W -Wall -Wstrict-prototypes -Wreturn-type -Wcast-align \
|
||||
-Wpointer-arith -Wcast-qual -ansi -pedantic"
|
||||
|
||||
|
||||
# Warnings disabled by default
|
||||
# Warnings enabled by default
|
||||
# Check whether --enable-warnings or --disable-warnings was given.
|
||||
if test "${enable_warnings+set}" = set; then
|
||||
enableval="$enable_warnings"
|
||||
|
@ -1380,9 +1379,10 @@ if test "${enable_warnings+set}" = set; then
|
|||
fi
|
||||
|
||||
else
|
||||
CFLAGS="${NORMAL_CFLAGS}"
|
||||
CFLAGS="${WARN_CFLAGS}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
|
32
configure.in
32
configure.in
|
@ -41,22 +41,9 @@ WARN_CFLAGS="${CFLAGS} -W -Wall -Wstrict-prototypes -Wreturn-type -Wcast-align \
|
|||
-Wpointer-arith -Wcast-qual -ansi -pedantic"
|
||||
|
||||
dnl Use this during development
|
||||
dnl # Warnings enabled by default
|
||||
dnl AC_ARG_ENABLE(warnings,
|
||||
dnl [ --enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=yes]],
|
||||
dnl [
|
||||
dnl if eval "test x$enable_warnings = xyes"; then
|
||||
dnl CFLAGS="${WARN_CFLAGS}"
|
||||
dnl else
|
||||
dnl CFLAGS="${NORMAL_CFLAGS}"
|
||||
dnl fi
|
||||
dnl ],
|
||||
dnl [CFLAGS="${WARN_CFLAGS}"])
|
||||
|
||||
dnl Use this for releases
|
||||
# Warnings disabled by default
|
||||
# Warnings enabled by default
|
||||
AC_ARG_ENABLE(warnings,
|
||||
[ --enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=no]],
|
||||
[ --enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=yes]],
|
||||
[
|
||||
if eval "test x$enable_warnings = xyes"; then
|
||||
CFLAGS="${WARN_CFLAGS}"
|
||||
|
@ -64,7 +51,20 @@ AC_ARG_ENABLE(warnings,
|
|||
CFLAGS="${NORMAL_CFLAGS}"
|
||||
fi
|
||||
],
|
||||
[CFLAGS="${NORMAL_CFLAGS}"])
|
||||
[CFLAGS="${WARN_CFLAGS}"])
|
||||
|
||||
dnl Use this for releases
|
||||
dnl # Warnings disabled by default
|
||||
dnl AC_ARG_ENABLE(warnings,
|
||||
dnl [ --enable-warnings Turn on tons of compiler warnings (if you are using GCC) [default=no]],
|
||||
dnl [
|
||||
dnl if eval "test x$enable_warnings = xyes"; then
|
||||
dnl CFLAGS="${WARN_CFLAGS}"
|
||||
dnl else
|
||||
dnl CFLAGS="${NORMAL_CFLAGS}"
|
||||
dnl fi
|
||||
dnl ],
|
||||
dnl [CFLAGS="${NORMAL_CFLAGS}"])
|
||||
|
||||
|
||||
fi
|
||||
|
|
Ładowanie…
Reference in New Issue