diff --git a/autogen.sh b/autogen.sh index 15741faed..7aa465ef2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,16 @@ #!/bin/sh -aclocal +if test -f "`aclocal --print-ac-dir`/guile.m4"; then + aclocal +else + if test -f "`guile-config info datadir`/aclocal/guile.m4"; then + aclocal -I "`guile-config info datadir`/aclocal" + else + echo "Cannot find guile.m4"; + exit; + fi +fi + autoheader automake -a autoconf