|
a/src/configure.ac |
|
b/src/configure.ac |
|
... |
|
... |
30 |
fi
|
30 |
fi
|
31 |
|
31 |
|
32 |
AC_SYS_LARGEFILE
|
32 |
AC_SYS_LARGEFILE
|
33 |
|
33 |
|
34 |
# OpenBSD needs sys/param.h for mount.h to compile
|
34 |
# OpenBSD needs sys/param.h for mount.h to compile
|
35 |
AC_CHECK_HEADERS([sys/param.h])
|
35 |
AC_CHECK_HEADERS([sys/param.h, spawn.h])
|
|
|
36 |
|
|
|
37 |
AC_CHECK_FUNCS([posix_spawn])
|
|
|
38 |
|
|
|
39 |
if test "x$ac_cv_func_posix_spawn" = xyes; then :
|
|
|
40 |
AC_ARG_ENABLE(posix_spawn,
|
|
|
41 |
AC_HELP_STRING([--enable-posix_spawn],
|
|
|
42 |
[Enable the use of posix_spawn().]),
|
|
|
43 |
posixSpawnEnabled=$enableval, posixSpawnEnabled=no)
|
|
|
44 |
fi
|
|
|
45 |
if test X$posixSpawnEnabled = Xyes ; then
|
|
|
46 |
AC_DEFINE(USE_POSIX_SPAWN, 1, [Use posix_spawn()])
|
|
|
47 |
fi
|
36 |
|
48 |
|
37 |
# Check for where to find unordered_map etc.
|
49 |
# Check for where to find unordered_map etc.
|
38 |
AC_LANG_PUSH([C++])
|
50 |
AC_LANG_PUSH([C++])
|
39 |
AC_CHECK_HEADER(tr1/unordered_map,[AC_DEFINE([HAVE_TR1_UNORDERED],
|
51 |
AC_CHECK_HEADER(tr1/unordered_map,[AC_DEFINE([HAVE_TR1_UNORDERED],
|
40 |
[],["Have tr1"])],[])
|
52 |
[],["Have tr1"])],[])
|