From 7638b966d7641b43f04c23a3938e30648b9d3475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Wed, 7 Feb 2001 23:48:24 +0000 Subject: [PATCH] * check if linradio include files are installed and enable WiNRADiO support accordingly git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@347 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- configure.in | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index d877462d1..c0991df51 100644 --- a/configure.in +++ b/configure.in @@ -67,12 +67,12 @@ if test "${enable_dynamic}" != "no"; then [enable_dynamic=no]) fi -if test "${enable_rigmatrix}" != "no"; then - AC_CHECK_HEADERS(gd.h, +dnl Check if libgd-dev is installed, so we can enable rigmatrix + +AC_CHECK_HEADERS(gd.h, [AC_CHECK_LIB(gd,gdImageCreate) AC_CHECK_FUNCS(gdImageCreate, , enable_rigmatrix=no)], [enable_rigmatrix=no]) -fi if test "${ac_cv_header_gd_h}" = "no"; then echo "disabling rigmatrix generation" RIGMATRIX= @@ -82,6 +82,26 @@ else fi AC_SUBST(RIGMATRIX) +dnl Check if linradio-toolkit includes are there, so we can enable WiNRADiO + +AC_CHECK_HEADERS(linradio/radio_ioctl.h linradio/wrapi.h) +if test "${ac_cv_header_linradio_radio_ioctl_h}" = "no" -o \ + "${ac_cv_header_linradio_wrapi_h}" = "no"; then + echo "disabling WiNRADiO receiver support" + WINRADIO= + WINRADIOLNK= + WINRADIODEPS= +else + echo "enabling WiNRADiO receiver support" + WINRADIO=winradio + WINRADIOLNK="\"-dlopen\" ../winradio/libhamlib-winradio.la" + WINRADIODEPS="../winradio/libhamlib-winradio.la" +fi +AC_SUBST(WINRADIO) +AC_SUBST(WINRADIOLNK) +AC_SUBST(WINRADIODEPS) + + AC_SUBST(INCLUDES) if test "${ac_cv_header_sys_socket_h}" = "no"; then @@ -96,7 +116,7 @@ AC_SUBST(NET) if test "${enable_shared}" = "no"; then enable_preload=yes fi -if test "${enable_dynamic}" = no || test "${enable_preload}" = "yes"; then +if test "${enable_dynamic}" = "no" || test "${enable_preload}" = "yes"; then echo "preloading backends into DLL" DLL_PRELOAD="\$(PRELOADABLE_BACKENDS)" else @@ -107,7 +127,7 @@ AC_SUBST(V_MINOR) AC_SUBST(DLL_PRELOAD) AC_OUTPUT( yaesu/Makefile icom/Makefile aor/Makefile \ - kenwood/Makefile \ + kenwood/Makefile winradio/Makefile \ Makefile include/Makefile include/hamlib/Makefile src/Makefile \ tests/Makefile doc/Makefile )