Skip to content

Commit

Permalink
Merge commit '0615dc375525fa11d780e94623a1d717eb705f6d'
Browse files Browse the repository at this point in the history
Get fixed cmocka detection
  • Loading branch information
pstorz committed Aug 25, 2015
2 parents 855d390 + 0615dc3 commit f939abb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
12 changes: 8 additions & 4 deletions autoconf/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -883,10 +883,14 @@ dnl - Check for cmocka unit test framework http://cmocka.cryptomilk.org/
dnl ---------------------------------------------------------------------------
AC_MSG_CHECKING(for cmocka support)

AC_CHECK_HEADERS( \
setjmp.h \
cmocka.h \
)
AC_CHECK_HEADERS(
[ setjmp.h cmocka.h ],,,
[#include <stdarg.h>
#include <stddef.h>
#ifdef HAVE_SETJMP_H
#include <setjmp.h>
#endif
])

UNITTEST_DIRS=

Expand Down
13 changes: 8 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -22979,13 +22979,16 @@ done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka support" >&5
$as_echo_n "checking for cmocka support... " >&6; }

for ac_header in \
setjmp.h \
cmocka.h \

for ac_header in setjmp.h cmocka.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <stdarg.h>
#include <stddef.h>
#ifdef HAVE_SETJMP_H
#include <setjmp.h>
#endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Expand Down

0 comments on commit f939abb

Please sign in to comment.