]> git.draconx.ca Git - gob-dx.git/blob - configure.in
Release 1.0.7
[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(gob,1.0.7)
6
7 dnl
8 dnl  An utter hack to allow embedding of gob inside other packages.
9 dnl  if a file is found in the parent directory named NOINST_GOB, then
10 dnl  gob is not installed
11 dnl
12 if test -f ../NOINST_GOB ; then
13   DOINSTGOB=
14   NOINSTGOB=gob
15   AC_MSG_RESULT([*** NOT Going to install GOB ***])
16   SUBDIRS="src examples"
17   AC_SUBST(SUBDIRS)
18 else
19   DOINSTGOB=gob
20   NOINSTGOB=
21   SUBDIRS="src examples doc"
22   AC_SUBST(SUBDIRS)
23 fi
24 AC_SUBST(DOINSTGOB)
25 AC_SUBST(NOINSTGOB)
26
27 dnl Checks for programs.
28 AC_PROG_CC
29 AC_STDC_HEADERS
30 AC_PROG_YACC
31 AM_PROG_LEX
32 AC_PROG_INSTALL
33 AC_PROG_CPP
34 AC_PATH_PROG(RM, rm, /bin/rm)
35 AC_PATH_PROG(MV, mv, /bin/mv)
36 AC_PATH_PROG(TAR, tar, /bin/tar)
37 AM_PATH_GLIB(1.2.0,,,)
38 dnl We don't check popt since we're not using it at the moment, but
39 dnl We just might use it later
40 dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
41 dnl          AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
42 dnl AC_SUBST(POPT_LIB)
43
44
45 dnl AM_PROG_LIBTOOL
46
47 AM_MAINTAINER_MODE
48
49 AC_SUBST(CFLAGS)
50 AC_SUBST(CPPFLAGS)
51 AC_SUBST(LDFLAGS)
52
53 AC_OUTPUT([
54 gob.spec
55 Makefile
56 src/Makefile
57 doc/Makefile
58 examples/Makefile
59 doc/gob.1])