summaryrefslogtreecommitdiffhomepage
path: root/configure.in
blob: 3ff5d91f8ae45e96016ff734e23f64df821308d9 (plain)
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
60
# Copyright (C) 2000 Jose Antonio Ortega Ruiz <jaortega@retemail.es>
#  
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without 
# modifications, as long as this notice is preserved.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AC_INIT(mixlib/mix.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mdk,0.1.1)

AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

AM_PROG_LEX
AC_PROG_RANLIB

dnl i18n stuff
ALL_LINGUAS="ca"
AM_GNU_GETTEXT

test "x$prefix" = xNONE && prefix=$ac_default_prefix

AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale")

dnl Check for readline and history
AC_CHECK_LIB(readline, completion_matches, ,
    [AC_MSG_WARN(Cannot find GNU readline lib... using default flag)
     LIBS="$LIBS -lreadline"])
AC_CHECK_LIB(history, add_history, ,
    [AC_MSG_WARN(Cannot find GNU history lib... using default flag)
     LIBS="$LIBS -lhistory"])

dnl Check for glib
AM_PATH_GLIB(1.2.0,
             [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
	     AC_MSG_ERROR(Cannot find GLIB), "gmodule" )

CFLAGS="$CFLAGS -Wall"
AC_SUBST(CFLAGS)

AC_OUTPUT( 
Makefile 
doc/Makefile 
doc/html/Makefile 
mixlib/Makefile 
mixlib/testsuite/Makefile 
mixutils/Makefile 
intl/Makefile 
samples/Makefile
po/Makefile.in 
)