From 3868cc0e80ebe373ca5d2846195bdb612327aaec Mon Sep 17 00:00:00 2001 From: brarcher Date: Sun, 22 Sep 2013 23:29:01 +0000 Subject: [PATCH] export HAVE_FORK to testing shell scripts The testing scripts will need to know if fork is available or not, as different tests will run if it is. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@778 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- configure.ac | 3 ++- tests/test_vars.in | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 134aa39..01d95ca 100644 --- a/configure.ac +++ b/configure.ac @@ -187,7 +187,8 @@ AC_CHECK_DECLS([alarm, clock_gettime, timer_create, timer_settime, timer_delete, AC_CHECK_FUNCS([setitimer]) # Checks for functions not available in Windows -AC_CHECK_FUNCS([fork]) +AC_CHECK_FUNCS([fork], HAVE_FORK=1, HAVE_FORK=0) +AC_SUBST(HAVE_FORK) AC_CHECK_FUNCS([sigaction]) # Check if the system's snprintf (and its variations) are C99 compliant. diff --git a/tests/test_vars.in b/tests/test_vars.in index 0382461..4dea21e 100644 --- a/tests/test_vars.in +++ b/tests/test_vars.in @@ -3,3 +3,5 @@ ENABLE_SUBUNIT=@ENABLE_SUBUNIT@ export ENABLE_SUBUNIT EXEEXT=@EXEEXT@ export EXEEXT +HAVE_FORK=@HAVE_FORK@ +export HAVE_FORK -- 2.40.0