File: configure.ac

package info (click to toggle)
biosig4c++ 1.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,220 kB
  • sloc: ansic: 41,218; cpp: 8,946; sh: 4,365; makefile: 1,758; python: 87; awk: 73; php: 40; perl: 36; java: 14; ruby: 7
file content (118 lines) | stat: -rw-r--r-- 4,261 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([biosig], [1.9.2])
AC_CONFIG_SRCDIR([biosig.c])
AC_CONFIG_HEADERS([config.h])

AC_USE_SYSTEM_EXTENSIONS

# Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

# Checks for libraries.
AC_CHECK_LIB([asound],  [snd_pcm_open])
AC_CHECK_LIB([b64],     [base64_encode_block], AC_SUBST(HAVE_LIBB64,     "1") )
AC_CHECK_LIB([cholmod], [cholmod_start],       AC_SUBST(HAVE_LIBCHOLMOD, "1") )
AC_CHECK_LIB([dcmdata], [dcmEnableOtherLongVRGeneration], AC_SUBST(HAVE_DCMTK, "1") )
# AC_CHECK_LIB([hdf5],    [H5open],              AC_SUBST(HAVE_LIBHDF5,    "1") )
# AC_CHECK_LIB([matio],   [Mat_Open],            AC_SUBST(HAVE_LIBMATIO,   "1") )
AC_CHECK_LIB([z],       [gzopen],              AC_SUBST(HAVE_LIBZ,       "1") )

# FIXME: Replace `main' with a function in `-lgdcmCommon':
#AC_CHECK_LIB([gdcmCommon], [main])
# FIXME: Replace `main' with a function in `-lgdcmDICT':
#AC_CHECK_LIB([gdcmDICT], [main])
# FIXME: Replace `main' with a function in `-lgdcmDSED':
#AC_CHECK_LIB([gdcmDSED], [main])
# FIXME: Replace `main' with a function in `-lgdcmIOD':
#AC_CHECK_LIB([gdcmIOD], [main])
# FIXME: Replace `main' with a function in `-lgdcmMEXD':
#AC_CHECK_LIB([gdcmMEXD], [main])
# FIXME: Replace `main' with a function in `-lgdcmMSFF':
#AC_CHECK_LIB([gdcmMSFF], [main])

AC_CHECK_LIB([iberty], [getlogin])

AC_CHECK_LIB([iconv], [iconv_open])
AC_CHECK_HEADER([iconv.h], ,[AC_MSG_ERROR([can not find iconv.h])])
#AC_CHECK_LIB([tinyxml] , [main],        AC_SUBST(HAVE_LIBTINYXML, "1")  [TEST_LIBS="$TEST_LIBS -ltinyxml"],   AC_MSG_WARN([libtinyxml is not installed.]))
#AC_CHECK_LIB([tinyxml2], [main],        AC_SUBST(HAVE_LIBTINYXML2, "1") [TEST_LIBS="$TEST_LIBS -ltinyxml2"],  AC_MSG_WARN([libtinyxml2 is not installed.]))

AC_CHECK_PROG(HAVE_OCTAVE,[mkoctfile],"1")
#AC_CHECK_PROG(HAVE_MATHEMATICA,[mathematica],"1")
AC_CHECK_PROG(HAVE_PYTHON,[python],"1")
AC_CHECK_PROG(HAVE_PYTHON2,[python2],"1")
AC_CHECK_PROG(HAVE_PYTHON3,[python3],"1")
AC_CHECK_PROG(HAVE_R,[R],"1")

# FIXME: Replace `main' with a function in `-llibmex':
AC_CHECK_LIB([libmex], [main])
# FIXME: Replace `main' with a function in `-llibmx':
AC_CHECK_LIB([libmx], [main])

AC_CHECK_LIB([m],	 [round],		AC_SUBST(HAVE_LIBM,       "1") )

# Wolfram/Mathematica Mathlink interface
AC_CHECK_LIB([mathlink], [MLPutRealArray],	AC_SUBST(HAVE_MATHEMATICA,"1"))
AC_CHECK_LIB([uuid],     [uuid_generate],	AC_SUBST(HAVE_UUID,       "1"))

#AC_CHECK_LIB([pthread], [pthread_mutex_lock])
# FIXME: Replace `main' with a function in `-lssp':
#AC_CHECK_LIB([ssp], [main])

# Checks for header files.
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h inttypes.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_REALLOC
AC_FUNC_STRNLEN
AC_FUNC_STRTOD
AC_CHECK_FUNCS([alarm atexit bzero dup2 floor getcwd getdelim gethostbyname gethostname gettimeofday localtime_r memchr memmove memset mkdir modf pow putenv rmdir select setenv setlocale socket strcasecmp strchr strcspn strdup strerror strncasecmp strndup strpbrk strrchr strspn strstr strtol strtoul strtoumax tzset])

AC_CONFIG_FILES([Makefile
                 R/Makefile
                 examples/Makefile
                 igor/Makefile
                 java/Makefile
                 magic/Makefile
                 mex/Makefile
                 mma/Makefile
                 perl/Makefile
                 php/Makefile
                 python/Makefile
                 ruby/Makefile
                 t240/Makefile
                 t241/Makefile
                 tcl/Makefile])

AC_OUTPUT