-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
39 lines (35 loc) · 1.03 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
AC_INIT([PLCM], [1.2], [[email protected]])
: ${CFLAGS=-O3}
: ${CXXFLAGS=-O3}
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CXX
AC_CHECK_LIB([pthread],[pthread_create], [], [
echo "pthread library is required for this program."
exit -1])
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(prof,
AS_HELP_STRING([--enable-prof],
[enable profiling, default: no]),
[case "${enableval}" in
yes) prof=true ;;
no) prof=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-prof]) ;;
esac],
[prof=false])
AM_CONDITIONAL(PROF, test x"$prof" = x"true")
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_CONFIG_SUBDIRS([melinda])
AC_OUTPUT