File: configure.ac

package info (click to toggle)
libjackasyn 0.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 384 kB
  • ctags: 145
  • sloc: sh: 2,603; ansic: 1,189; makefile: 107
file content (46 lines) | stat: -rw-r--r-- 1,159 bytes parent folder | download | duplicates (2)
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
# Process this file with autoconf to produce a configure script.
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([libjackasyn.h])
AC_PREFIX_DEFAULT(/usr)

# ARGUMENT

AC_SUBST(DEBUG)
AC_ARG_ENABLE(debug,[  --enable-debug          Compile in debug output],[DEBUG="-g -DWITH_DEBUG"],[])


# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S

# Checks for libraries.

# FIXME: Replace main
AC_CHECK_LIB([rt], [main])
# FIXME: Replace `main' with a function in `-ldl':
AC_CHECK_LIB([dl], [main])
# FIXME: Replace `main' with a function in `-ljack':
AC_CHECK_LIB([jack], [main],,[echo please install jack jackit.sf.net;exit])
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])
AC_CHECK_LIB([samplerate], [main])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_MODE_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_CHECK_FUNCS([select])

AC_CONFIG_FILES([Makefile jacklaunch])

AC_OUTPUT