File: configure.in

package info (click to toggle)
gob 1.0.12-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 824 kB
  • ctags: 721
  • sloc: ansic: 6,050; yacc: 1,129; lex: 503; sh: 335; perl: 320; makefile: 100
file content (59 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.2)
AC_INIT(src/treefuncs.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gob,1.0.12)

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
if test -f ../NOINST_GOB ; then
  DOINSTGOB=
  NOINSTGOB=gob
  AC_MSG_RESULT([*** NOT Going to install GOB ***])
  SUBDIRS="src examples"
  AC_SUBST(SUBDIRS)
else
  DOINSTGOB=gob
  NOINSTGOB=
  SUBDIRS="src examples doc"
  AC_SUBST(SUBDIRS)
fi
AC_SUBST(DOINSTGOB)
AC_SUBST(NOINSTGOB)

dnl Checks for programs.
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_YACC
AM_PROG_LEX
AC_PROG_INSTALL
AC_PROG_CPP
AC_PATH_PROG(RM, rm, /bin/rm)
AC_PATH_PROG(MV, mv, /bin/mv)
AC_PATH_PROG(TAR, tar, /bin/tar)
AM_PATH_GLIB(1.2.0,,,)
dnl We don't check popt since we're not using it at the moment, but
dnl We just might use it later
dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
dnl 	     AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
dnl AC_SUBST(POPT_LIB)


dnl AM_PROG_LIBTOOL

AM_MAINTAINER_MODE

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

AC_OUTPUT([
gob.spec
Makefile
src/Makefile
doc/Makefile
examples/Makefile
doc/gob.1])