164
164
AC_MSG_WARN([Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support. If you do not agree with this EULA, please press Ctrl-C before the next line is printed. By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA.])
167
dnl building of benchmarks
168
AC_ARG_ENABLE(benchmarks,
169
AC_HELP_STRING([--disable-benchmarks], [disable building benchmarks apps]),
171
case "${enableval}" in
172
yes) BUILD_BENCHMARKS=yes ;;
173
no) BUILD_BENCHMARKS=no ;;
174
*) AC_MSG_ERROR(bad value ${enableval} for --disable-benchmarks) ;;
177
[BUILD_BENCHMARKS=yes]) dnl Default value
178
AM_CONDITIONAL(BUILD_BENCHMARKS, test "x$BUILD_BENCHMARKS" = "xyes")
180
dnl building of tools
182
AC_HELP_STRING([--disable-tools], [disable building tools]),
184
case "${enableval}" in
185
yes) BUILD_TOOLS=yes ;;
186
no) BUILD_TOOLS=no ;;
187
*) AC_MSG_ERROR(bad value ${enableval} for --disable-tools) ;;
190
[BUILD_TOOLS=yes]) dnl Default value
191
AM_CONDITIONAL(BUILD_TOOLS, test "x$BUILD_TOOLS" = "xyes")
167
193
dnl poison destroyed objects
168
194
AC_ARG_ENABLE(poisoning,
169
195
AC_HELP_STRING([--enable-poisoning],
272
298
dnl Check for ucontext.h
273
AC_CHECK_HEADERS([ucontext.h])
299
AC_CHECK_HEADERS([ucontext.h], [], [], [AC_INCLUDES_DEFAULT])
275
301
dnl Check for sys/socket.h
276
AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
302
AC_CHECK_HEADERS([sys/socket.h], [HAVE_SYS_SOCKET_H=yes], [HAVE_SYS_SOCKET_H=no], [AC_INCLUDES_DEFAULT])
277
303
AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
279
305
dnl check for sys/times.h for tests/examples/adapter/
280
AC_CHECK_HEADERS([sys/times.h], HAVE_SYS_TIMES_H=yes)
281
AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
306
AC_CHECK_HEADERS([sys/times.h], [HAVE_SYS_TIMES_H=yes], [HAVE_SYS_TIME_H=no], [AC_INCLUDES_DEFAULT])
307
AC_CHECK_HEADERS([unistd.h], [HAVE_UNISTD_H=yes], [HAVE_UNISTD_H=no], [AC_INCLUDES_DEFAULT])
282
308
AM_CONDITIONAL(HAVE_SYS_TIMES_H_AND_UNISTD_H, test "x$HAVE_SYS_TIMES_H" = "xyes" -a "x$HAVE_UNISTD_H" = "xyes")
284
310
dnl Check for process.h for getpid() on win32
285
AC_CHECK_HEADERS([process.h])
311
AC_CHECK_HEADERS([process.h], [], [], [AC_INCLUDES_DEFAULT])
287
313
dnl Check for sys/utsname.h for uname
288
AC_CHECK_HEADERS([sys/utsname.h])
314
AC_CHECK_HEADERS([sys/utsname.h], [], [], [AC_INCLUDES_DEFAULT])
290
316
dnl Check for stdio_ext.f for __fbufsize
291
AC_CHECK_HEADERS([stdio_ext.h])
317
AC_CHECK_HEADERS([stdio_ext.h], [], [], [AC_INCLUDES_DEFAULT])
293
319
dnl check for pthreads
294
AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes)
320
AC_CHECK_HEADERS([pthread.h], [HAVE_PTHREAD_H=yes], [HAVE_PTHREAD_H=no], [AC_INCLUDES_DEFAULT])
295
321
AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes")
297
323
dnl check for sys/prctl for setting thread name on Linux
298
AC_CHECK_HEADERS([sys/prctl.h], HAVE_SYS_PRCTL_H=yes)
324
AC_CHECK_HEADERS([sys/prctl.h], [], [], [AC_INCLUDES_DEFAULT])
300
326
dnl Check for valgrind.h
301
327
dnl separate from HAVE_VALGRIND because you can have the program, but not
302
328
dnl the dev package
303
AC_CHECK_HEADERS([valgrind/valgrind.h], HAVE_VALGRIND_H=yes)
329
AC_CHECK_HEADERS([valgrind/valgrind.h], [], [], [AC_INCLUDES_DEFAULT])
305
331
dnl used in gst/gstpoll.c
306
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
332
AC_CHECK_HEADERS([winsock2.h], [HAVE_WINSOCK2_H=yes], [HAVE_WINSOCK2_H=no], [AC_INCLUDES_DEFAULT])
307
333
AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
308
334
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
309
335
WIN32_LIBS="-lws2_32"
382
408
AC_CHECK_FUNCS([fsetpos])
384
410
dnl check for poll(), ppoll() and pselect()
411
AC_CHECK_HEADERS([sys/poll.h], [], [], [AC_INCLUDES_DEFAULT])
412
AC_CHECK_HEADERS([poll.h], [], [], [AC_INCLUDES_DEFAULT])
385
413
AC_CHECK_FUNCS([poll])
386
414
AC_CHECK_FUNCS([ppoll])
387
415
AC_CHECK_FUNCS([pselect])
389
AC_CHECK_HEADERS([sys/poll.h])
391
417
dnl ****************************************
392
418
dnl *** GLib POLL* compatibility defines ***
393
419
dnl ****************************************