diff --git a/autogen.sh b/autogen.sh index ce2e8f8..5ddf9a2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,11 +1,24 @@ #!/bin/sh -# to save me from typing :P +# create aclocal.m4 file with content of given directory without 'aclocal' tool +function aclocal_emulate() { + dir="$1" + filename="aclocal.m4" + + rm -f $filename + + for i in `ls $dir/*`; do + echo "m4_include([$i])" >> $filename + done + + echo " " >> $filename +} + if [ "$1" = "--compile" ]; then compile=1 fi -if aclocal -I m4 && autoheader && autoconf; then +if aclocal_emulate m4 && autoheader && autoconf; then echo "" echo "Now run ./configure [OPTIONS]" echo "or './configure --help' to see them"