1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([gob2], [2.0.20])
3 AC_CONFIG_SRCDIR([src/treefuncs.h])
4 AM_INIT_AUTOMAKE([dist-xz])
6 AM_CONFIG_HEADER(config.h)
12 dnl An utter hack to allow embedding of gob inside other packages.
13 dnl if a file is found in the parent directory named NOINST_GOB, then
14 dnl gob is not installed
17 AM_CONDITIONAL(NOINSTGOB, test -f ../NOINST_GOB)
19 dnl Is there a way to test NOINSTGOB here ?
20 if test -f ../NOINST_GOB ; then
21 AC_MSG_RESULT([*** NOT Going to install GOB ***])
22 SUBDIRS="src examples"
24 SUBDIRS="src examples doc"
28 dnl Checks for programs.
36 AC_PATH_PROG(RM, rm, /bin/rm)
37 AC_PATH_PROG(MV, mv, /bin/mv)
38 AC_PATH_PROG(TAR, tar, /bin/tar)
39 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
42 dnl We don't check popt since we're not using it at the moment, but
43 dnl We just might use it later
44 dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
45 dnl AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
46 dnl AC_SUBST(POPT_LIB)