forked from dmtx/libdmtx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
38 lines (32 loc) · 887 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
AC_INIT([libdmtx], [0.7.7], [https://github.com/dmtx/libdmtx/issues], [libdmtx], [https://github.com/dmtx/libdmtx])
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
libdmtx.pc
test/Makefile
test/simple_test/Makefile
])
AC_PROG_CC
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AC_SEARCH_LIBS([sin], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))
AC_SEARCH_LIBS([cos], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))
AC_SEARCH_LIBS([atan2], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_FUNCS([gettimeofday])
case $target_os in
cygwin*)
ARCH=cygwin ;;
darwin*)
ARCH=macosx ;;
freebsd*)
ARCH=freebsd ;;
linux-gnu*)
ARCH=linux-gnu ;;
mingw32*)
ARCH=mingw32 ;;
esac
AM_CONDITIONAL([TARGET_MACOSX], [test x$ARCH = xmacosx])
AC_OUTPUT