forked from umanwizard/libeot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
39 lines (35 loc) · 1.07 KB
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([libeot],[0.01],[[email protected]])
AM_INIT_AUTOMAKE([1.11 subdir-objects foreign dist-bzip2 dist-xz -Wall -Werror])
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[enable debugging, default: no]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],
[debug=false])
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
AC_ARG_ENABLE([fuzzer],
[AS_HELP_STRING([--enable-fuzzer], [Build fuzzer])],
[enable_fuzzer="$enableval"],
[enable_fuzzer=no]
)
AS_IF([test "$enable_fuzzer" = "yes"], [AC_LANG([C++])])
AM_CONDITIONAL([BUILD_FUZZER], [test "$enable_fuzzer" = "yes"])
OLD_CFLAGS=$CFLAGS
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
CFLAGS=$OLD_CFLAGS
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile \
libeot.pc \
])
AC_PROG_RANLIB
AM_PROG_AR
LT_INIT([disable-static])
AC_OUTPUT