Commit 55b6ca1f authored by Bernd Paysan's avatar Bernd Paysan

configure option for enable/disable gps

parent ad0b5fa1
......@@ -3,10 +3,10 @@ test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
function git-get {
echo "=== git clone $purl/$pname.git $* ==="
purl=$1
pname=$2
shift; shift
echo "=== git clone $purl/$pname.git $* ==="
if [ -d $pname ]
then
(cd $pname; git pull -f)
......
......@@ -72,13 +72,23 @@ AC_PROG_INSTALL
PRECC=${CC%gcc*}
PRECLANG=${PRECC%clang*}
dnl MacOS X has a libtool that does something else
AC_CHECK_PROGS(GNU_LIBTOOL,"glibtool --tag=CC" libtool)
AC_CHECK_PROGS(GNU_LIBTOOL,glibtool libtool)
GNU_LIBTOOL=${PRECLANG}${GNU_LIBTOOL}
echo "Libtool: $PRECC, $PRECLANG, $GNU_LIBTOOL"
AC_ARG_ENABLE(gps,
AC_HELP_STRING([--enable-gps],
[ Enable GPS (default enabled).]),
,enable_gps=yes)
HAS_GPSD=0
AC_CHECK_LIB(gps, gps_open, HAS_GPSD=1)
if test x"$enable_gps" = xyes; then
AC_CHECK_LIB(gps, gps_open, , enable_gps=no)
if test x"$enable_gps" = xyes; then
HAS_GPSD=1
fi
fi
AC_SUBST(HAS_GPSD)
AC_SUBST(GFORTH)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment