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