Commit 5927421c authored by Sam Hocevar's avatar Sam Hocevar

* ./ipkg/Makefile.in: removed a file handled by automake.

  * ./configure.ac.in: additional warning flags for GCC.
       -Wconversion
           Warn if a prototype causes a type conversion that is different from
           what would happen to the same argument in the absence of a proto-
           type.
       -Wsign-compare
           Warn when a comparison between signed and unsigned values could
           produce an incorrect result when the signed value is converted to
           unsigned.
       -Wunreachable-code
           Warn if the compiler detects that code will never be executed.
       -Wdisabled-optimization
           Warn if a requested optimization pass is disabled.
    See the gcc documentation for more explanations. This triggers a lot of
    warnings everywhere, and at first sight they're all worth fixing. Code
    quality matters, too, so let's fix'em :)
parent b9dc2550
......@@ -445,25 +445,89 @@ if test "x${ac_cv_c_inline_limit}" != "xno"; then
OBJCFLAGS_save="${OBJCFLAGS_save} -finline-limit-30000"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
dnl Check for -W or -w flags
AC_CACHE_CHECK([if \$CC accepts -Wall -Winline],
[ac_cv_c_Wall_Winline],
[CFLAGS="-Wall -Winline ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wall_Winline=yes, ac_cv_c_Wall_Winline=no)])
if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
CFLAGS_save="-Wall -Winline ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wall ${CXXFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wall -Winline ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
else
AC_CACHE_CHECK([if \$CC accepts -wall -winline],
[ac_cv_c_wall_winline],
[CFLAGS="-wall -winline ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_wall_winline=yes, ac_cv_c_wall_winline=no)])
if test "x${ac_cv_c_wall_winline}" != "xno"; then
CFLAGS_save="-wall -winline ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-wall -winline ${CXXFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-wall -winline ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
# XXX: do this with an M4 macro?
#dnl Check for various -W flags
#for flag in "" all unreachable-code conversion sign-compare disabled-optimization
#do
# AC_CACHE_CHECK([if \$CC accepts -W${flag}],
# [ac_cv_c_W${flag}],
# [CFLAGS="-W${flag} ${CFLAGS_save}"
# AC_TRY_COMPILE([],,ac_cv_c_W${flag}=yes, ac_cv_c_W${flag}=no)])
# if test "x${ac_cv_c_W${flag}}" != "xno"; then
# CFLAGS_save="-W${flag} ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
# CXXFLAGS_save="-W${flag} ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
# OBJCFLAGS_save="-W${flag} ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
# fi
#done
AC_CACHE_CHECK([if \$CC accepts -W],
[ac_cv_c_W],
[CFLAGS="-W ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_W=yes, ac_cv_c_W=no)])
if test "x${ac_cv_c_W}" != "xno"; then
CFLAGS_save="-W ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-W ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-W ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
AC_CACHE_CHECK([if \$CC accepts -Wall],
[ac_cv_c_Wall],
[CFLAGS="-Wall ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wall=yes, ac_cv_c_Wall=no)])
if test "x${ac_cv_c_Wall}" != "xno"; then
CFLAGS_save="-Wall ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wall ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wall ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
AC_CACHE_CHECK([if \$CC accepts -Wunreachable-code],
[ac_cv_c_Wunreachable_code],
[CFLAGS="-Wunreachable-code ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wunreachable_code=yes, ac_cv_c_Wunreachable_code=no)])
if test "x${ac_cv_c_Wunreachable_code}" != "xno"; then
CFLAGS_save="-Wunreachable-code ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wunreachable-code ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wunreachable-code ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
AC_CACHE_CHECK([if \$CC accepts -Wconversion],
[ac_cv_c_Wconversion],
[CFLAGS="-Wconversion ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wconversion=yes, ac_cv_c_Wconversion=no)])
if test "x${ac_cv_c_Wconversion}" != "xno"; then
CFLAGS_save="-Wconversion ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wconversion ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wconversion ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
AC_CACHE_CHECK([if \$CC accepts -Wsign-compare],
[ac_cv_c_Wsign_compare],
[CFLAGS="-Wsign-compare ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wsign_compare=yes, ac_cv_c_Wsign_compare=no)])
if test "x${ac_cv_c_Wsign_compare}" != "xno"; then
CFLAGS_save="-Wsign-compare ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wsign-compare ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wsign-compare ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
AC_CACHE_CHECK([if \$CC accepts -Wdisabled-optimization],
[ac_cv_c_Wdisabled_optimization],
[CFLAGS="-Wdisabled-optimization ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Wdisabled_optimization=yes, ac_cv_c_Wdisabled_optimization=no)])
if test "x${ac_cv_c_Wdisabled_optimization}" != "xno"; then
CFLAGS_save="-Wdisabled-optimization ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="-Wdisabled-optimization ${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="-Wdisabled-optimization ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
dnl Check for the -Winline flag
AC_CACHE_CHECK([if \$CC accepts -W -Winline],
[ac_cv_c_Winline],
[CFLAGS="-Winline ${CFLAGS_save}"
AC_TRY_COMPILE([],,ac_cv_c_Winline=yes, ac_cv_c_Winline=no)])
if test "x${ac_cv_c_Winline}" != "xno"; then
CFLAGS_save="-Winline ${CFLAGS_save}"; CFLAGS="${CFLAGS_save}"
OBJCFLAGS_save="-Winline ${OBJCFLAGS_save}"; OBJCFLAGS="${OBJCFLAGS_save}"
fi
dnl Check for -pipe
......
......@@ -378,3 +378,18 @@ the Boston strangler is to the woman home alone.
-- #videolan
%
<JMunakra> nah you have zip with password protection
<jlj> that's not classified as DRM
<JMunakra> where does DRM start?
<Meuuh> I don't know, but I know where it ends : at my doorstep
-- #videolan
%
<hal_3k> jlj: what did you do?
<jlj> I was like watching a few of my DVDs using unauthorized software under
the evil GNU/Linux operating system, and then my computer was, like,
beep beep beep beep beep beep beep, and then, like, all my computers
were confiscated, and I was like, nnnn? ... It's kind of ... a bummer.
-- #videolan
%
# Makefile.in generated automatically by automake 1.5 from Makefile.am.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
ALIASES = @ALIASES@
AMTAR = @AMTAR@
ARCH = @ARCH@
ARTS_CONFIG = @ARTS_CONFIG@
ASM = @ASM@
AUTOMAKE_SUCKS = @AUTOMAKE_SUCKS@
AWK = @AWK@
BCBUILDER = @BCBUILDER@
BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
BUILTINS = @BUILTINS@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CFLAGS_OPTIM = @CFLAGS_OPTIM@
CFLAGS_OPTIM_NODEBUG = @CFLAGS_OPTIM_NODEBUG@
CFLAGS_TUNING = @CFLAGS_TUNING@
CFLAGS_aout_sdl = @CFLAGS_aout_sdl@
CFLAGS_arts = @CFLAGS_arts@
CFLAGS_builtins = @CFLAGS_builtins@
CFLAGS_esd = @CFLAGS_esd@
CFLAGS_familiar = @CFLAGS_familiar@
CFLAGS_gnome = @CFLAGS_gnome@
CFLAGS_gnome_main = @CFLAGS_gnome_main@
CFLAGS_gtk = @CFLAGS_gtk@
CFLAGS_gtk_main = @CFLAGS_gtk_main@
CFLAGS_i420_yuy2_mmx = @CFLAGS_i420_yuy2_mmx@
CFLAGS_idctaltivec = @CFLAGS_idctaltivec@
CFLAGS_memcpyaltivec = @CFLAGS_memcpyaltivec@
CFLAGS_motionaltivec = @CFLAGS_motionaltivec@
CFLAGS_mpeg_video = @CFLAGS_mpeg_video@
CFLAGS_pics = @CFLAGS_pics@
CFLAGS_plugins = @CFLAGS_plugins@
CFLAGS_vlc = @CFLAGS_vlc@
CFLAGS_vout_sdl = @CFLAGS_vout_sdl@
CPP = @CPP@
CPPFLAGS_a52tofloat32 = @CPPFLAGS_a52tofloat32@
CPPFLAGS_directx = @CPPFLAGS_directx@
CPPFLAGS_dvd = @CPPFLAGS_dvd@
CPPFLAGS_dvdplay = @CPPFLAGS_dvdplay@
CPPFLAGS_dvdread = @CPPFLAGS_dvdread@
CPPFLAGS_faad = @CPPFLAGS_faad@
CPPFLAGS_ffmpeg = @CPPFLAGS_ffmpeg@
CPPFLAGS_ggi = @CPPFLAGS_ggi@
CPPFLAGS_glide = @CPPFLAGS_glide@
CPPFLAGS_kde = @CPPFLAGS_kde@
CPPFLAGS_mad = @CPPFLAGS_mad@
CPPFLAGS_mozilla = @CPPFLAGS_mozilla@
CPPFLAGS_qt = @CPPFLAGS_qt@
CPPFLAGS_qte = @CPPFLAGS_qte@
CPPFLAGS_ts_dvbpsi = @CPPFLAGS_ts_dvbpsi@
CPPFLAGS_x11 = @CPPFLAGS_x11@
CPPFLAGS_xvideo = @CPPFLAGS_xvideo@
CXX = @CXX@
CXXFLAGS_qte = @CXXFLAGS_qte@
DATADIRNAME = @DATADIRNAME@
DATA_PATH = @DATA_PATH@
DEPDIR = @DEPDIR@
ESD_CONFIG = @ESD_CONFIG@
EXEEXT = @EXEEXT@
GENCAT = @GENCAT@
GLIBC21 = @GLIBC21@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GNOME_CONFIG = @GNOME_CONFIG@
GTK12_CONFIG = @GTK12_CONFIG@
GTK_CONFIG = @GTK_CONFIG@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INSTOBJEXT = @INSTOBJEXT@
INTLBISON = @INTLBISON@
INTLLIBS = @INTLLIBS@
INTLOBJS = @INTLOBJS@
INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
LDFLAGS = @LDFLAGS@
LDFLAGS_a52tofloat32 = @LDFLAGS_a52tofloat32@
LDFLAGS_aa = @LDFLAGS_aa@
LDFLAGS_access_http = @LDFLAGS_access_http@
LDFLAGS_alsa = @LDFLAGS_alsa@
LDFLAGS_aout_sdl = @LDFLAGS_aout_sdl@
LDFLAGS_arts = @LDFLAGS_arts@
LDFLAGS_beos = @LDFLAGS_beos@
LDFLAGS_builtins = @LDFLAGS_builtins@
LDFLAGS_directx = @LDFLAGS_directx@
LDFLAGS_dv = @LDFLAGS_dv@
LDFLAGS_dvd = @LDFLAGS_dvd@
LDFLAGS_dvdplay = @LDFLAGS_dvdplay@
LDFLAGS_dvdread = @LDFLAGS_dvdread@
LDFLAGS_esd = @LDFLAGS_esd@
LDFLAGS_faad = @LDFLAGS_faad@
LDFLAGS_familiar = @LDFLAGS_familiar@
LDFLAGS_ffmpeg = @LDFLAGS_ffmpeg@
LDFLAGS_ggi = @LDFLAGS_ggi@
LDFLAGS_glide = @LDFLAGS_glide@
LDFLAGS_gnome = @LDFLAGS_gnome@
LDFLAGS_gnome_main = @LDFLAGS_gnome_main@
LDFLAGS_gtk = @LDFLAGS_gtk@
LDFLAGS_gtk_main = @LDFLAGS_gtk_main@
LDFLAGS_i420_rgb = @LDFLAGS_i420_rgb@
LDFLAGS_id3tag = @LDFLAGS_id3tag@
LDFLAGS_idctaltivec = @LDFLAGS_idctaltivec@
LDFLAGS_imdct = @LDFLAGS_imdct@
LDFLAGS_imdct3dn = @LDFLAGS_imdct3dn@
LDFLAGS_imdctsse = @LDFLAGS_imdctsse@
LDFLAGS_ipv4 = @LDFLAGS_ipv4@
LDFLAGS_ipv6 = @LDFLAGS_ipv6@
LDFLAGS_kde = @LDFLAGS_kde@
LDFLAGS_libvlc = @LDFLAGS_libvlc@
LDFLAGS_lirc = @LDFLAGS_lirc@
LDFLAGS_macosx = @LDFLAGS_macosx@
LDFLAGS_mad = @LDFLAGS_mad@
LDFLAGS_memcpyaltivec = @LDFLAGS_memcpyaltivec@
LDFLAGS_motionaltivec = @LDFLAGS_motionaltivec@
LDFLAGS_mozilla = @LDFLAGS_mozilla@
LDFLAGS_mp4 = @LDFLAGS_mp4@
LDFLAGS_ncurses = @LDFLAGS_ncurses@
LDFLAGS_plugins = @LDFLAGS_plugins@
LDFLAGS_qnx = @LDFLAGS_qnx@
LDFLAGS_qt = @LDFLAGS_qt@
LDFLAGS_qte = @LDFLAGS_qte@
LDFLAGS_rc = @LDFLAGS_rc@
LDFLAGS_svgalib = @LDFLAGS_svgalib@
LDFLAGS_ts_dvbpsi = @LDFLAGS_ts_dvbpsi@
LDFLAGS_vcd = @LDFLAGS_vcd@
LDFLAGS_vlc = @LDFLAGS_vlc@
LDFLAGS_vout_sdl = @LDFLAGS_vout_sdl@
LDFLAGS_waveout = @LDFLAGS_waveout@
LDFLAGS_x11 = @LDFLAGS_x11@
LDFLAGS_xosd = @LDFLAGS_xosd@
LDFLAGS_xvideo = @LDFLAGS_xvideo@
LIBEXT = @LIBEXT@
LIBICONV = @LIBICONV@
MKINSTALLDIRS = @MKINSTALLDIRS@
MOC = @MOC@
MOZILLA_CONFIG = @MOZILLA_CONFIG@
MSGFMT = @MSGFMT@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PLUGINS = @PLUGINS@
PLUGIN_PATH = @PLUGIN_PATH@
POFILES = @POFILES@
POSUB = @POSUB@
RANLIB = @RANLIB@
SDL11_CONFIG = @SDL11_CONFIG@
SDL12_CONFIG = @SDL12_CONFIG@
SDL_CONFIG = @SDL_CONFIG@
STRIP = @STRIP@
SYS = @SYS@
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
WINDRES = @WINDRES@
XPIDL = @XPIDL@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
EXTRA_DIST = control patch rules
subdir = ipkg
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign ipkg/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
uninstall-info-am:
tags: TAGS
TAGS:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
$(mkinstalldirs) "$(distdir)/$$dir"; \
fi; \
if test -d $$d/$$file; then \
cp -pR $$d/$$file $(distdir) \
|| exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am:
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic distclean \
distclean-generic distdir dvi dvi-am info info-am install \
install-am install-data install-data-am install-exec \
install-exec-am install-info install-info-am install-man \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic uninstall uninstall-am uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment