blob: 613adb225589602adb8022896b9a371235fe88bc (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
Index: prismstumbler-0.7.4pre1/configure.ac
===================================================================
--- prismstumbler-0.7.4pre1.orig/configure.ac
+++ prismstumbler-0.7.4pre1/configure.ac
@@ -137,51 +137,11 @@ AC_ARG_ENABLE(static-libgps,
], [ static_libgps="no"]
)
-AC_MSG_CHECKING(for libgps)
-AC_ARG_WITH(libgps,
-[ --with-libgps=DIR use libgps in DIR],
-[ case "$withval" in
- *)
- AC_MSG_RESULT($withval)
- if test -f $withval/include/gps.h -a -f $withval/lib/libgps.a; then
- owd=`pwd`
- if cd $withval; then withval=`pwd`; cd $owd; fi
- libgps_dir=${withval}
- GPSD_CFLAGS="-I$withval/include"
- if test "x$static_libgps" = "xyes"; then
- GPSD_LIBS="-lm -lpthread $withval/lib/libgps.a"
- else
- GPSD_LIBS="-L$withval/lib -lgps"
- fi
- else
- AC_ERROR(libgps not found in $withval prefix)
- fi
- ;;
- esac ],
-[
- for dir in ${prefix} ${prefix}/local /usr /usr/local; do
- if test -f ${dir}/include/gps.h -a -f ${dir}/lib/libgps.a; then
- libgps_dir=${dir}
- GPSD_CFLAGS="-I${dir}/include"
- if test "x$static_libgps" = "xyes"; then
- GPSD_LIBS="-lm -lpthread ${dir}/lib/libgps.a"
- else
- GPSD_LIBS="-L${dir}/lib -lgps"
- fi
- fi
- done
- if test -z ${libgps_dir}; then
- AC_MSG_RESULT(no)
- AC_ERROR(libgps not found)
- fi
- AC_MSG_RESULT(yes) ]
-)
+PKG_CHECK_MODULES([GPSD], [libgps])
if test -z "$GPSD_CFLAGS"; then
AC_ERROR("libgps not found")
fi
-AC_SUBST(GPSD_CFLAGS)
-AC_SUBST(GPSD_LIBS)
dnl Checks for wireless lib
|