File: configure.ac

package info (click to toggle)
abcmidi 20190705-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,128 kB
  • sloc: ansic: 30,529; sh: 427; makefile: 104
file content (42 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download | duplicates (4)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT([abcmidi], [2011-08-03], [seymour.shlien@crc.ca])
AC_CONFIG_SRCDIR([abc.h])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
cflags_save="$CFLAGS"
AC_PROG_CC
CFLAGS="$cflags_save" 

dnl This mechanism allows one to enable debug compilations...
AC_ARG_ENABLE(debug,
              [  --enable-debug          Enable debugging information],
              USE_DEBUG="$enableval", USE_DEBUG="no")
if test $USE_DEBUG = yes ; then   
  CFLAGS="$CFLAGS -g"
else
  CFLAGS="$CFLAGS -O2"
fi

AC_PROG_INSTALL

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strcasecmp strchr])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT