mode=x
out="aclocal.m4"
in="configure.in"
+stdlib=true
while [ $# -gt 0 ]; do
case $1 in
-v, --version Print the program's version number.
-l, --list List chunks defined in text libraries.
-x, --extract Extract chunks from text libraries (default).
+-n, --no-stdlib Don't read from the standard libraries.
-c, --config=CONFIG Read CONFIG, not \`configure.in', to decide which
macros need extracting.
-o, --output=OUTPUT Extract chunks to OUTPUT, not \`aclocal.m4'.
--o=* | --ou=* | --out=* | --outp=* | --outpu=* | --output=*)
out=`echo $1 | sed -e 's/^--[a-z]*=//'`
;;
+ -n | --no-s* | --no-st* | --no-std* | --no-stdl* | \
+ --no-stdli* | --no-stdlib)
+ stdlib=false
+ ;;
-l | --l | --li | --lis | --list)
mode=l
;;
shift
done
-set \
- "$datadir/aclocal.glob" \
- `test -r $datadir/aclocal.site && echo "$datadir/aclocal.site"` \
- `test -r ./aclocal.lib && echo "./aclocal.lib"` \
- "$@"
+if $stdlib; then
+ set \
+ "$datadir/aclocal.glob" \
+ `test -r $datadir/aclocal.site && echo "$datadir/aclocal.site"` \
+ `test -r ./aclocal.lib && echo "./aclocal.lib"` \
+ "$@"
+else
+ set \
+ `test -r ./aclocal.lib && echo "./aclocal.lib"` \
+ "$@"
+fi
# --- Now do the job ---
;;
x)
- t=/tmp/mkaclocal.$$
- if mkdir -m 700 $t; then :
+ t=${TMPDIR-/tmp}/mkaclocal.$$
+ if mkdir -m700 $t; then :
else
- echo >&2 "mkaclocal: cculd not creat etemporary directory"
+ echo >&2 "mkaclocal: cculd not create temporary directory"
exit 1
fi
echo -NOTICE- >$t/a