projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove config.{status,cache} before running configure
[tinc]
/
autogen.sh
diff --git
a/autogen.sh
b/autogen.sh
index
09e5ecd
..
09e5a70
100644
(file)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-4,7
+4,12
@@
DIE=0
DIE=0
-srcdir="`pwd`"
+if ${MAKE:-gmake} -q -C . autogen.sh 2> /dev/null
+then
+ alias make=${MAKE:-gmake}
+fi
+
+srcdir="`/bin/pwd`"
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
@@
-145,6
+150,7
@@
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
+ rm -f config.status config.cache
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
else
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
else