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
|
ac_help="$ac_help
|
||||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
||||||
ac_help="$ac_help
|
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
|
ac_help="$ac_help
|
||||||
--enable-shared[=PKGS] build shared libraries [default=yes]"
|
--enable-shared[=PKGS] build shared libraries [default=yes]"
|
||||||
ac_help="$ac_help
|
ac_help="$ac_help
|
||||||
|
@ -1367,8 +1367,7 @@ NORMAL_CFLAGS="${CFLAGS} -W -Wall"
|
||||||
WARN_CFLAGS="${CFLAGS} -W -Wall -Wstrict-prototypes -Wreturn-type -Wcast-align \
|
WARN_CFLAGS="${CFLAGS} -W -Wall -Wstrict-prototypes -Wreturn-type -Wcast-align \
|
||||||
-Wpointer-arith -Wcast-qual -ansi -pedantic"
|
-Wpointer-arith -Wcast-qual -ansi -pedantic"
|
||||||
|
|
||||||
|
# Warnings enabled by default
|
||||||
# Warnings disabled by default
|
|
||||||
# Check whether --enable-warnings or --disable-warnings was given.
|
# Check whether --enable-warnings or --disable-warnings was given.
|
||||||
if test "${enable_warnings+set}" = set; then
|
if test "${enable_warnings+set}" = set; then
|
||||||
enableval="$enable_warnings"
|
enableval="$enable_warnings"
|
||||||
|
@ -1380,11 +1379,12 @@ if test "${enable_warnings+set}" = set; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
CFLAGS="${NORMAL_CFLAGS}"
|
CFLAGS="${WARN_CFLAGS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
||||||
echo "configure:1391: checking for ANSI C header files" >&5
|
echo "configure:1391: checking for ANSI C header files" >&5
|
||||||
|
|
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"
|
-Wpointer-arith -Wcast-qual -ansi -pedantic"
|
||||||
|
|
||||||
dnl Use this during development
|
dnl Use this during development
|
||||||
dnl # Warnings enabled by default
|
# 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
|
|
||||||
AC_ARG_ENABLE(warnings,
|
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
|
if eval "test x$enable_warnings = xyes"; then
|
||||||
CFLAGS="${WARN_CFLAGS}"
|
CFLAGS="${WARN_CFLAGS}"
|
||||||
|
@ -64,7 +51,20 @@ AC_ARG_ENABLE(warnings,
|
||||||
CFLAGS="${NORMAL_CFLAGS}"
|
CFLAGS="${NORMAL_CFLAGS}"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
Ładowanie…
Reference in New Issue