1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
temp=/tmp/guile-aclocal.$$ |
# This trivial script exists to have a single place where the |
4 |
trap "rm -rf $temp" 0 1 2 15 |
# invocation of aclocal is specified. It is called from both |
5 |
|
# autogen.sh and the Makefile. |
6 |
|
|
7 |
mkdir $temp |
aclocal -I guile-config |
|
[ -d $temp ] || { |
|
|
echo "guile-aclocal.sh: cannot create temp directory" |
|
|
exit 1 |
|
|
} |
|
|
|
|
|
# copy all installed aclocal files into $temp |
|
|
cp `aclocal --print-ac-dir`/*.m4 $temp |
|
|
|
|
|
# remove the .m4 files installed by Guile from $temp, so they don't |
|
|
# cause conflicts |
|
|
rm -f ${temp}/guile.m4 ${temp}/qthreads.m4 |
|
|
|
|
|
aclocal --acdir=$temp -I . |
|