* 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 =
|
NULL =
|
||||||
|
|
||||||
SUBDIRS = include src lib scm doc examples
|
SUBDIRS = include src lib scm doc examples
|
||||||
DIST_SUBDIRS = $(SUBDIRS) autotools debian
|
DIST_SUBDIRS = $(SUBDIRS) debian
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
bootstrap \
|
bootstrap \
|
||||||
|
|
|
@ -51,17 +51,16 @@ fi
|
||||||
|
|
||||||
# Remove old cruft
|
# 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 -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
|
rm -Rf autom4te.cache autotools
|
||||||
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
|
mkdir autotools
|
||||||
|
|
||||||
aclocal${amvers}
|
|
||||||
${libtoolize} --copy --force
|
${libtoolize} --copy --force
|
||||||
|
|
||||||
if test -f "ltmain.sh"; then
|
if test -f "ltmain.sh"; then
|
||||||
echo "$0: working around a minor libtool issue"
|
echo "$0: working around a minor libtool issue"
|
||||||
mv ltmain.sh autotools/
|
mv ltmain.sh autotools/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
aclocal${amvers}
|
||||||
autoconf
|
autoconf
|
||||||
autoheader
|
autoheader
|
||||||
automake${amvers} --add-missing --copy
|
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}"
|
CFLAGS_save="-Wall ${CFLAGS_save}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK([if \$CC accepts -Wsign-compare],
|
# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
|
||||||
[ac_cv_c_Wsign_compare],
|
CFLAGS_warn="-Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
|
||||||
[CFLAGS="-Wsign-compare ${CFLAGS_save}"
|
AC_CACHE_CHECK([if \$CC accepts ${CFLAGS_warn}],
|
||||||
AC_TRY_COMPILE([],,ac_cv_c_Wsign_compare=yes, ac_cv_c_Wsign_compare=no)])
|
[ac_cv_c_Wwarn],
|
||||||
if test "x${ac_cv_c_Wsign_compare}" != "xno"; then
|
[CFLAGS="${CFLAGS_warn} ${CFLAGS_save}"
|
||||||
CFLAGS_save="-Wsign-compare ${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
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
@ -568,7 +570,6 @@ dnl Finished!
|
||||||
dnl
|
dnl
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
autotools/Makefile
|
|
||||||
debian/Makefile
|
debian/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/bitstring/Makefile
|
doc/bitstring/Makefile
|
||||||
|
|
Loading…
Reference in New Issue