configure.ac

changeset 47
e5455e692b45
child 48
0d2c13c24fd0
equal deleted inserted replaced
46:e0928e4b9a59 47:e5455e692b45
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT(cline, 1.1, universe@uap-core.de)
6 AC_CONFIG_SRCDIR([src/cline.c])
7 AC_CONFIG_HEADERS([config.h])
8 AM_INIT_AUTOMAKE
9
10 # Conditionals
11 AC_ARG_ENABLE([debug],
12 [ --enable-debug Turn on debugging],
13 [case "${enableval}" in
14 yes) debug=true ;;
15 no) debug=false ;;
16 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
17 esac],[debug=false])
18 AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
19
20 # Checks for programs.
21 AC_PROG_CC
22
23 # Checks for libraries.
24
25 # Checks for header files.
26 AC_CHECK_HEADERS([stdlib.h string.h])
27
28 # Checks for typedefs, structures, and compiler characteristics.
29 AC_CHECK_HEADER_STDBOOL
30 AC_TYPE_SIZE_T
31
32 # Checks for library functions.
33 AC_FUNC_MALLOC
34 AC_FUNC_REALLOC
35 AC_CHECK_FUNCS([memset regcomp strcasecmp strchr])
36
37 AC_OUTPUT(Makefile src/Makefile)

mercurial