Adjust dependencies.
When using $verbose, redirect to stderr.
+2000-07-10 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh (dots, aclocal_m4, acconfig_h): Remove.
+ Adjust dependencies.
+ When using $verbose, redirect to stderr.
+
2000-07-10 Akim Demaille <akim@epita.fr>
* autoreconf.sh: Clarify the difference between the location of
(
cd $dir || continue
- case "$dir" in
- .) dots= ;;
- *) # A "../" for each directory in /$dir.
- dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;;
- esac
-
- case "$localdir" in
- /*) aclocal_m4=$localdir/aclocal.m4 ;;
- *) aclocal_m4=$dots$localdir/aclocal.m4 ;;
- esac
-
# ----------------- #
# Running aclocal. #
# uses_aclocal -- is this package using aclocal?
uses_aclocal=false
- aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
- if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 ||
- test -f "$aclocal_dir/acinclude.m4"; then
+ if grep 'generated .* by aclocal' $localddir/aclocal.m4 >/dev/null 2>&1 ||
+ test -f "$localdir/acinclude.m4"; then
uses_aclocal=:
fi
if $uses_aclocal &&
{ $force ||
- $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then
+ $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then
# If there are flags for aclocal in Makefile.am, use them.
aclocal_flags=`sed -f $tmp/alflags.sed Makefile.am 2>/dev/null`
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$aclocal_m4 in $dir
- $aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
uses_automake=:
if $uses_automake &&
{ $force || $update Makefile.in Makefile.am; } then
- $verbose running $automake in $dir
+ $verbose running $automake in $dir >&2
$automake
fi
# Running autoconf. #
# ------------------ #
- test ! -f $aclocal_m4 && aclocal_m4=
-
if $force ||
- $update configure configure.in $aclocal_m4; then
- $verbose running $autoconf in $dir
+ $update configure configure.in $localdir/aclocal.m4; then
+ $verbose running $autoconf in $dir >&2
$autoconf
fi
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
- acconfig_h=$localdir/acconfig.h
uses_autoheader=false;
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
- $update $template configure.in $aclocal_m4 $acconfig_h ||
- $update $stamp configure.in $aclocal_m4 $acconfig_h; } then
- $verbose running $autoheader in $dir
+ $update $template \
+ configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
+ $update $stamp \
+ configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
+ $verbose running $autoheader in $dir >&2
$autoheader &&
- $verbose "touching $stamp" &&
+ $verbose "touching $stamp" >&2 &&
touch $stamp
fi
fi
(
cd $dir || continue
- case "$dir" in
- .) dots= ;;
- *) # A "../" for each directory in /$dir.
- dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;;
- esac
-
- case "$localdir" in
- /*) aclocal_m4=$localdir/aclocal.m4 ;;
- *) aclocal_m4=$dots$localdir/aclocal.m4 ;;
- esac
-
# ----------------- #
# Running aclocal. #
# uses_aclocal -- is this package using aclocal?
uses_aclocal=false
- aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
- if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 ||
- test -f "$aclocal_dir/acinclude.m4"; then
+ if grep 'generated .* by aclocal' $localddir/aclocal.m4 >/dev/null 2>&1 ||
+ test -f "$localdir/acinclude.m4"; then
uses_aclocal=:
fi
if $uses_aclocal &&
{ $force ||
- $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then
+ $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then
# If there are flags for aclocal in Makefile.am, use them.
aclocal_flags=`sed -f $tmp/alflags.sed Makefile.am 2>/dev/null`
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$aclocal_m4 in $dir
- $aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
uses_automake=:
if $uses_automake &&
{ $force || $update Makefile.in Makefile.am; } then
- $verbose running $automake in $dir
+ $verbose running $automake in $dir >&2
$automake
fi
# Running autoconf. #
# ------------------ #
- test ! -f $aclocal_m4 && aclocal_m4=
-
if $force ||
- $update configure configure.in $aclocal_m4; then
- $verbose running $autoconf in $dir
+ $update configure configure.in $localdir/aclocal.m4; then
+ $verbose running $autoconf in $dir >&2
$autoconf
fi
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
- acconfig_h=$localdir/acconfig.h
uses_autoheader=false;
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
- $update $template configure.in $aclocal_m4 $acconfig_h ||
- $update $stamp configure.in $aclocal_m4 $acconfig_h; } then
- $verbose running $autoheader in $dir
+ $update $template \
+ configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
+ $update $stamp \
+ configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
+ $verbose running $autoheader in $dir >&2
$autoheader &&
- $verbose "touching $stamp" &&
+ $verbose "touching $stamp" >&2 &&
touch $stamp
fi
fi
(
cd $dir || continue
- case "$dir" in
- .) dots= ;;
- *) # A "../" for each directory in /$dir.
- dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;;
- esac
-
- case "$localdir" in
- /*) aclocal_m4=$localdir/aclocal.m4 ;;
- *) aclocal_m4=$dots$localdir/aclocal.m4 ;;
- esac
-
# ----------------- #
# Running aclocal. #
# uses_aclocal -- is this package using aclocal?
uses_aclocal=false
- aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
- if grep 'generated automatically by aclocal' $aclocal_m4 >/dev/null 2>&1 ||
- test -f "$aclocal_dir/acinclude.m4"; then
+ if grep 'generated .* by aclocal' $localddir/aclocal.m4 >/dev/null 2>&1 ||
+ test -f "$localdir/acinclude.m4"; then
uses_aclocal=:
fi
if $uses_aclocal &&
{ $force ||
- $update $aclocal_m4 $aclocal_dir/acinclude.m4; } then
+ $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then
# If there are flags for aclocal in Makefile.am, use them.
aclocal_flags=`sed -f $tmp/alflags.sed Makefile.am 2>/dev/null`
aclocal_flags="$aclocal_flags -I $m4dir";;
esac
- $verbose running $aclocal $aclocal_flags --output=$aclocal_m4 in $dir
- $aclocal $aclocal_flags --output=$aclocal_m4
+ $verbose running $aclocal $aclocal_flags --output=$localdir/aclocal.m4 in $dir >&2
+ $aclocal $aclocal_flags --output=$localdir/aclocal.m4
fi
uses_automake=:
if $uses_automake &&
{ $force || $update Makefile.in Makefile.am; } then
- $verbose running $automake in $dir
+ $verbose running $automake in $dir >&2
$automake
fi
# Running autoconf. #
# ------------------ #
- test ! -f $aclocal_m4 && aclocal_m4=
-
if $force ||
- $update configure configure.in $aclocal_m4; then
- $verbose running $autoconf in $dir
+ $update configure configure.in $localdir/aclocal.m4; then
+ $verbose running $autoconf in $dir >&2
$autoconf
fi
template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
stamp=$template_dir/stamp-h$stamp_num.in
- acconfig_h=$localdir/acconfig.h
uses_autoheader=false;
grep autoheader "$template" >/dev/null 2>&1 &&
uses_autoheader=:
if $uses_autoheader &&
{ $force ||
- $update $template configure.in $aclocal_m4 $acconfig_h ||
- $update $stamp configure.in $aclocal_m4 $acconfig_h; } then
- $verbose running $autoheader in $dir
+ $update $template \
+ configure.in $localdir/aclocal.m4 $localdir/acconfig.h ||
+ $update $stamp \
+ configure.in $localdir/aclocal_m4 $localdir/acconfig.h; } then
+ $verbose running $autoheader in $dir >&2
$autoheader &&
- $verbose "touching $stamp" &&
+ $verbose "touching $stamp" >&2 &&
touch $stamp
fi
fi