* bootstrap:
+ Call aclocal after libtoolize. + Got rid of autotools/ * configure.ac: + Added more warning flags to the compilation process. git-svn-id: svn://svn.zoy.org/elk/trunk@253 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
parent
da3485795e
commit
f53cb70249
|
@ -1,7 +1,7 @@
|
|||
NULL =
|
||||
|
||||
SUBDIRS = include src lib scm doc examples
|
||||
DIST_SUBDIRS = $(SUBDIRS) autotools debian
|
||||
DIST_SUBDIRS = $(SUBDIRS) debian
|
||||
|
||||
EXTRA_DIST = \
|
||||
bootstrap \
|
||||
|
|
|
@ -51,17 +51,16 @@ fi
|
|||
|
||||
# Remove old cruft
|
||||
rm -f aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh INSTALL
|
||||
rm -Rf autom4te.cache
|
||||
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
|
||||
rm -Rf autom4te.cache autotools
|
||||
mkdir autotools
|
||||
|
||||
aclocal${amvers}
|
||||
${libtoolize} --copy --force
|
||||
|
||||
if test -f "ltmain.sh"; then
|
||||
echo "$0: working around a minor libtool issue"
|
||||
mv ltmain.sh autotools/
|
||||
fi
|
||||
|
||||
aclocal${amvers}
|
||||
autoconf
|
||||
autoheader
|
||||
automake${amvers} --add-missing --copy
|
||||
|
|
15
configure.ac
15
configure.ac
|
@ -464,12 +464,14 @@ if test "x${ac_cv_c_Wall}" != "xno"; then
|
|||
CFLAGS_save="-Wall ${CFLAGS_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}"
|
||||
# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
|
||||
CFLAGS_warn="-Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
|
||||
AC_CACHE_CHECK([if \$CC accepts ${CFLAGS_warn}],
|
||||
[ac_cv_c_Wwarn],
|
||||
[CFLAGS="${CFLAGS_warn} ${CFLAGS_save}"
|
||||
AC_TRY_COMPILE([],,ac_cv_c_Wwarn=yes, ac_cv_c_Wwarn=no)])
|
||||
if test "x${ac_cv_c_Wwarn}" != "xno"; then
|
||||
CFLAGS_save="${CFLAGS_warn} ${CFLAGS_save}"
|
||||
fi
|
||||
|
||||
dnl
|
||||
|
@ -568,7 +570,6 @@ dnl Finished!
|
|||
dnl
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
autotools/Makefile
|
||||
debian/Makefile
|
||||
doc/Makefile
|
||||
doc/bitstring/Makefile
|
||||
|
|
Loading…
Reference in New Issue