+AM_INIT_AUTOMAKE(gob2,2.0.16)
+AM_MAINTAINER_MODE
+
+GLIB_REQUIRED=2.0.0
+
+dnl
+dnl An utter hack to allow embedding of gob inside other packages.
+dnl if a file is found in the parent directory named NOINST_GOB, then
+dnl gob is not installed
+dnl
+
+AM_CONDITIONAL(NOINSTGOB, test -f ../NOINST_GOB)
+
+dnl Is there a way to test NOINSTGOB here ?
+if test -f ../NOINST_GOB ; then
+ AC_MSG_RESULT([*** NOT Going to install GOB ***])
+ SUBDIRS="src examples"
+ INSTGOB=""
+ NOINSTGOB="gob2"
+else
+ SUBDIRS="src examples doc"
+ INSTGOB="gob2"
+ NOINSTGOB=""
+fi
+AC_SUBST(SUBDIRS)
+AC_SUBST(INSTGOB)
+AC_SUBST(NOINSTGOB)