]> git.draconx.ca Git - gob-dx.git/blob - configure.in
Release 2.0.13
[gob-dx.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.2)
3 AC_INIT(src/treefuncs.h)
4 AM_CONFIG_HEADER(config.h)
5 AM_INIT_AUTOMAKE(gob2,2.0.13)
6 AM_MAINTAINER_MODE
7
8 GLIB_REQUIRED=2.0.0
9
10 dnl
11 dnl  An utter hack to allow embedding of gob inside other packages.
12 dnl  if a file is found in the parent directory named NOINST_GOB, then
13 dnl  gob is not installed
14 dnl
15
16 AM_CONDITIONAL(NOINSTGOB, test -f ../NOINST_GOB)
17
18 dnl Is there a way to test NOINSTGOB here ?
19 if test -f ../NOINST_GOB ; then
20   AC_MSG_RESULT([*** NOT Going to install GOB ***])
21   SUBDIRS="src examples"
22   INSTGOB=""
23   NOINSTGOB="gob2"
24 else
25   SUBDIRS="src examples doc"
26   INSTGOB="gob2"
27   NOINSTGOB=""
28 fi
29 AC_SUBST(SUBDIRS)
30 AC_SUBST(INSTGOB)
31 AC_SUBST(NOINSTGOB)
32
33 dnl Checks for programs.
34 AC_ISC_POSIX
35 AC_PROG_CC
36 AC_STDC_HEADERS
37 AC_PROG_YACC
38 AM_PROG_LEX
39 AC_PROG_INSTALL
40 AC_PROG_CPP
41 AC_PATH_PROG(RM, rm, /bin/rm)
42 AC_PATH_PROG(MV, mv, /bin/mv)
43 AC_PATH_PROG(TAR, tar, /bin/tar)
44 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
45 AC_SUBST(GLIB_CFLAGS)
46 AC_SUBST(GLIB_LIBS)
47 dnl We don't check popt since we're not using it at the moment, but
48 dnl We just might use it later
49 dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
50 dnl          AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
51 dnl AC_SUBST(POPT_LIB)
52
53
54 dnl AM_PROG_LIBTOOL
55
56 AC_SUBST(CFLAGS)
57 AC_SUBST(CPPFLAGS)
58 AC_SUBST(LDFLAGS)
59 AC_SUBST(YFLAGS)
60
61 AC_OUTPUT([
62 gob2.spec
63 Makefile
64 src/Makefile
65 doc/Makefile
66 examples/Makefile
67 doc/gob2.1])