-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
41 lines (32 loc) · 924 Bytes
/
configure.ac
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
#
# Copyright (c) 2015,2017 Hirochika Asai <[email protected]>
# All rights reserved.
#
AC_PREREQ(2.59)
AC_INIT([poptrie], [0.2.0], [[email protected]])
AC_CONFIG_SRCDIR([poptrie.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE
AC_SUBST(SUBDIRS)
# arguments
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging [default no]],
[case "${enableval}" in
yes) debug=yes; AC_MSG_RESULT(Checking for debug... yes); AC_DEFINE(DEBUG, 1, debugging option) ;;
no) debug=no;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[debug=no])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
#AC_CHECK_FUNCS([])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT