File: configure.in

package info (click to toggle)
bb 1.3rc1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,424 kB
  • ctags: 1,330
  • sloc: ansic: 32,502; sh: 329; makefile: 54
file content (49 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (8)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
AM_INIT_AUTOMAKE(bb, 1.3.0)
AM_CONFIG_HEADER(aconfig.h)

use_cc_g_flag=no
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC

dnl Checks for programs.
AC_PROG_MAKE_SET

AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_SUBST(HAVE_MIKMOD)
AC_CHECK_FUNCS(ftime gettimeofday select strdup strstr strtol)

dnl Check for AA-lib
AM_PATH_AALIB(1.4.0, , AC_MSG_ERROR([*** AALIB >= 1.4.0 not installed - please install first ***]))
CFLAGS="$CFLAGS $AALIB_CFLAGS"
LIBS="$LIBS $AALIB_LIBS"

SOUNDFILES=""
AM_PATH_LIBMIKMOD(3.0.0, 
CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
LIBS="$LIBS $LIBMIKMOD_LIBS"
LDADD="$LDADD $LIBMIKMOD_LDADD"
AC_DEFINE(HAVE_LIBMIKMOD)
SOUNDFILES="bb.s3m bb2.s3m bb3.s3m"
dnl AC_DEFINE_UNQUOTED(SOUNDDIR,"$datadir/bb")
,
AC_MSG_RESULT([Libmikmod is missing - sound support will be disabled])
)

AC_SUBST(SOUNDFILES)
AC_OUTPUT(Makefile)