[Gpredict-svn] SF.net SVN: gpredict: [10] trunk/configure.ac
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2008-01-22 19:37:07
|
Revision: 10 http://gpredict.svn.sourceforge.net/gpredict/?rev=10&view=rev Author: csete Date: 2008-01-22 11:37:12 -0800 (Tue, 22 Jan 2008) Log Message: ----------- Added check for hamlib. Modified Paths: -------------- trunk/configure.ac Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2008-01-21 22:34:23 UTC (rev 9) +++ trunk/configure.ac 2008-01-22 19:37:12 UTC (rev 10) @@ -39,6 +39,18 @@ ]) +dnl check for hamlib +PKG_CHECK_MODULES(HAMLIB, hamlib, [ + CFLAGS="$CFLAGS $HAMLIB_CFLAGS"; + LIBS="$LIBS $HAMLIB_LIBS"; + havehamlib=true; + AC_DEFINE(HAVE_HAMLIB, 1, [Define if hamlib is available]) + ], [ + havehamlib=false; + AC_DEFINE(HAVE_HAMLIB, 0, [Define if hamlib is unvailable]) + +]) + dnl Add the languages which your application supports here. dnl Note that other progs only have ALL_LINGUAS and AM_GLIB_GNU_GETTEXT ALL_LINGUAS= @@ -67,6 +79,9 @@ if test "$havecurl" = true ; then CURL_V=`pkg-config --modversion libcurl` fi +if test "$havehamlib" = true ; then + HAML_V=`pkg-config --modversion hamlib` +fi AC_SUBST(CFLAGS) @@ -103,6 +118,11 @@ else echo Curl version....... : none fi +if test "$havehamlib" = true ; then +echo Hamlib version..... : $HAML_V +else +echo Hamlib version..... : none +fi echo Enable coverage.... : $enable_coverage echo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |