|
|
|
@ -662,6 +662,8 @@ ac_subst_vars='am__EXEEXT_FALSE
|
|
|
|
|
am__EXEEXT_TRUE |
|
|
|
|
LTLIBOBJS |
|
|
|
|
LIBOBJS |
|
|
|
|
CHECK_LIBS |
|
|
|
|
CHECK_CFLAGS |
|
|
|
|
LT_SYS_LIBRARY_PATH |
|
|
|
|
OTOOL64 |
|
|
|
|
OTOOL |
|
|
|
@ -788,6 +790,7 @@ with_aix_soname
|
|
|
|
|
with_gnu_ld |
|
|
|
|
with_sysroot |
|
|
|
|
enable_libtool_lock |
|
|
|
|
with_check |
|
|
|
|
' |
|
|
|
|
ac_precious_vars='build_alias |
|
|
|
|
host_alias |
|
|
|
@ -1448,6 +1451,7 @@ Optional Packages:
|
|
|
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
|
|
|
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
|
|
|
|
compiler's sysroot if not specified). |
|
|
|
|
--with-check=PATH prefix where check is installed default=auto |
|
|
|
|
|
|
|
|
|
Some influential environment variables: |
|
|
|
|
CC C compiler command |
|
|
|
@ -12572,7 +12576,172 @@ CC=$lt_save_CC
|
|
|
|
|
# Only expand once: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_config_files="$ac_config_files Makefile src/Makefile" |
|
|
|
|
|
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: AM_PATH_CHECK() is deprecated" >&5 |
|
|
|
|
printf "%s\n" "$as_me: WARNING: AM_PATH_CHECK() is deprecated" >&2;} |
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: use PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead" >&5 |
|
|
|
|
printf "%s\n" "$as_me: WARNING: use PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead" >&2;} |
|
|
|
|
|
|
|
|
|
# Check whether --with-check was given. |
|
|
|
|
if test ${with_check+y} |
|
|
|
|
then : |
|
|
|
|
withval=$with_check; |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
min_check_version=0.8.2 |
|
|
|
|
|
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check - version >= $min_check_version" >&5 |
|
|
|
|
printf %s "checking for check - version >= $min_check_version... " >&6; } |
|
|
|
|
|
|
|
|
|
if test x$with_check = xno; then |
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
|
|
|
|
printf "%s\n" "disabled" >&6; } |
|
|
|
|
as_fn_error $? "disabling check is not supported" "$LINENO" 5 |
|
|
|
|
else |
|
|
|
|
if test "x$with_check" != x; then |
|
|
|
|
CHECK_CFLAGS="-I$with_check/include" |
|
|
|
|
CHECK_LIBS="-L$with_check/lib -lcheck" |
|
|
|
|
else |
|
|
|
|
CHECK_CFLAGS="" |
|
|
|
|
CHECK_LIBS="-lcheck" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS" |
|
|
|
|
ac_save_LIBS="$LIBS" |
|
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS $CHECK_CFLAGS" |
|
|
|
|
LIBS="$CHECK_LIBS $LIBS" |
|
|
|
|
|
|
|
|
|
rm -f conf.check-test |
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
$ac_includes_default |
|
|
|
|
#include <check.h> |
|
|
|
|
|
|
|
|
|
int main () |
|
|
|
|
{ |
|
|
|
|
int major, minor, micro; |
|
|
|
|
char *tmp_version; |
|
|
|
|
|
|
|
|
|
system ("touch conf.check-test"); |
|
|
|
|
|
|
|
|
|
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
|
|
|
|
tmp_version = strdup("$min_check_version"); |
|
|
|
|
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
|
|
|
|
printf("%s, bad version string\n", "$min_check_version"); |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((CHECK_MAJOR_VERSION != check_major_version) || |
|
|
|
|
(CHECK_MINOR_VERSION != check_minor_version) || |
|
|
|
|
(CHECK_MICRO_VERSION != check_micro_version)) |
|
|
|
|
{ |
|
|
|
|
printf("\n*** The check header file (version %d.%d.%d) does not match\n", |
|
|
|
|
CHECK_MAJOR_VERSION, CHECK_MINOR_VERSION, CHECK_MICRO_VERSION); |
|
|
|
|
printf("*** the check library (version %d.%d.%d).\n", |
|
|
|
|
check_major_version, check_minor_version, check_micro_version); |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((check_major_version > major) || |
|
|
|
|
((check_major_version == major) && (check_minor_version > minor)) || |
|
|
|
|
((check_major_version == major) && (check_minor_version == minor) && (check_micro_version >= micro))) |
|
|
|
|
{ |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
printf("\n*** An old version of check (%d.%d.%d) was found.\n", |
|
|
|
|
check_major_version, check_minor_version, check_micro_version); |
|
|
|
|
printf("*** You need a version of check being at least %d.%d.%d.\n", major, minor, micro); |
|
|
|
|
printf("***\n"); |
|
|
|
|
printf("*** If you have already installed a sufficiently new version, this error\n"); |
|
|
|
|
printf("*** probably means that the wrong copy of the check library and header\n"); |
|
|
|
|
printf("*** file is being found. Rerun configure with the --with-check=PATH option\n"); |
|
|
|
|
printf("*** to specify the prefix where the correct version was installed.\n"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_ACEOF |
|
|
|
|
if ac_fn_c_try_compile "$LINENO" |
|
|
|
|
then : |
|
|
|
|
|
|
|
|
|
else $as_nop |
|
|
|
|
no_check=yes |
|
|
|
|
fi |
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
|
|
|
|
|
|
|
CFLAGS="$ac_save_CFLAGS" |
|
|
|
|
LIBS="$ac_save_LIBS" |
|
|
|
|
|
|
|
|
|
if test "x$no_check" = x ; then |
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
|
|
printf "%s\n" "yes" >&6; } |
|
|
|
|
: |
|
|
|
|
else |
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
|
|
printf "%s\n" "no" >&6; } |
|
|
|
|
if test -f conf.check-test ; then |
|
|
|
|
: |
|
|
|
|
else |
|
|
|
|
echo "*** Could not run check test program, checking why..." |
|
|
|
|
CFLAGS="$CFLAGS $CHECK_CFLAGS" |
|
|
|
|
LIBS="$CHECK_LIBS $LIBS" |
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
|
|
#include <check.h> |
|
|
|
|
|
|
|
|
|
int |
|
|
|
|
main (void) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
if ac_fn_c_try_link "$LINENO" |
|
|
|
|
then : |
|
|
|
|
echo "*** The test program compiled, but did not run. This usually means" |
|
|
|
|
echo "*** that the run-time linker is not finding check. You'll need to set your" |
|
|
|
|
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
|
|
|
|
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
|
|
|
|
echo "*** is required on your system" |
|
|
|
|
echo "***" |
|
|
|
|
echo "*** If you have an old version installed, it is best to remove it, although" |
|
|
|
|
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
|
|
|
|
else $as_nop |
|
|
|
|
echo "*** The test program failed to compile or link. See the file config.log for" |
|
|
|
|
echo "*** the exact error that occured." |
|
|
|
|
fi |
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
|
|
|
|
|
CFLAGS="$ac_save_CFLAGS" |
|
|
|
|
LIBS="$ac_save_LIBS" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
CHECK_CFLAGS="" |
|
|
|
|
CHECK_LIBS="" |
|
|
|
|
|
|
|
|
|
rm -f conf.check-test |
|
|
|
|
as_fn_error $? "check not found" "$LINENO" 5 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm -f conf.check-test |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >confcache <<\_ACEOF |
|
|
|
@ -13598,6 +13767,7 @@ do
|
|
|
|
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
|
|
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
|
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
|
|
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
|
|
|
|
|
|
|
|
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
|
|
|
esac |
|
|
|
|