* autogen.sh: Run aclocal with check where guile.m4 is installed.
authorKeisuke Nishida <kxn30@po.cwru.edu>
Mon, 11 Sep 2000 09:18:49 +0000 (09:18 +0000)
committerKeisuke Nishida <kxn30@po.cwru.edu>
Mon, 11 Sep 2000 09:18:49 +0000 (09:18 +0000)
autogen.sh

index 15741fa..7aa465e 100755 (executable)
@@ -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