blob: 2c4f122ea7a7e1f14a73bbff7af18fa4f1cf7a9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- check.m4.orig Tue Mar 1 01:25:26 2005
+++ check.m4 Sun Jul 2 21:13:20 2006
@@ -19,8 +19,21 @@
CHECK_CFLAGS="-I$with_check/include"
CHECK_LIBS="-L$with_check/lib -lcheck"
else
- CHECK_CFLAGS=""
- CHECK_LIBS="-lcheck"
+ for check_includedir in /usr/local/include /usr/local/include/check /usr/include $prefix/include
+ do
+ if test -e $check_includedir/check.h ; then
+ CHECK_CFLAGS="-I${check_includedir}"
+ break
+ fi
+ done
+
+ for check_libdir in /usr/local/lib /usr/local/lib/check /usr/lib $prefix/lib
+ do
+ if test -e $check_libdir/libcheck.a ; then
+ CHECK_LIBS="-L${check_libdir} -lcheck"
+ break
+ fi
+ done
fi
ac_save_CFLAGS="$CFLAGS"
|