summaryrefslogtreecommitdiffstats
path: root/configure.in
blob: be5de786401a291b4c20a7b13783f77255639a0a (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
AC_INIT(rcc-recode.c)
AM_INIT_AUTOMAKE(rcc_tools, `cat VERSION | sed -e s/CVS//`)
AC_CONFIG_HEADERS(config.h)

AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL

AC_CHECK_HEADERS(getopt.h dirent.h sys/types.h sys/file.h sys/stat.h)

AC_CHECK_HEADER(librcc.h, 
    [AC_CHECK_LIB(rcc, rccInit, 
	[ 
	    AC_DEFINE(HAVE_LIBRCC,1,[Defines if librcc is available])
	],[
	    AC_MSG_ERROR(LibRCC is required)
	])
    ],[
	AC_MSG_ERROR(LibRCC is required)
    
    ])

AC_OUTPUT([
    Makefile
])