diff options
author | jcorgan | 2006-08-19 00:37:11 +0000 |
---|---|---|
committer | jcorgan | 2006-08-19 00:37:11 +0000 |
commit | f3c0065c1e9bb7bfdbdba6118682be13c3365f4a (patch) | |
tree | fab3f52ab0b23752f22878c249bcd5cbcaeac2bd /config/grc_ezdop.m4 | |
parent | 2e62dfd2a2391406b729546e8c23b89a5aee5d97 (diff) | |
download | gnuradio-f3c0065c1e9bb7bfdbdba6118682be13c3365f4a.tar.gz gnuradio-f3c0065c1e9bb7bfdbdba6118682be13c3365f4a.tar.bz2 gnuradio-f3c0065c1e9bb7bfdbdba6118682be13c3365f4a.zip |
Fixes ticket:38. Merged -r3339:3349 from jcorgan/ticket-38 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3350 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'config/grc_ezdop.m4')
-rw-r--r-- | config/grc_ezdop.m4 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/config/grc_ezdop.m4 b/config/grc_ezdop.m4 index 818e17100..40336c0e9 100644 --- a/config/grc_ezdop.m4 +++ b/config/grc_ezdop.m4 @@ -33,24 +33,30 @@ AC_DEFUN([GRC_EZDOP],[ succeeded=yes - AC_PATH_PROG(AVRGCC, [avr-gcc -v], no) - if test $AVRGCC = no; then + # Firmware build requires Atmel AVR microcontroller port of GCC + AC_PATH_PROG([AVRGCC], [avr-gcc -v], [no]) + if test x$AVRGCC = xno; then succeeded=no fi - AC_PATH_PROG(AVROBJCOPY, [avr-objcopy], no) - if test $AVROBJCOPY = no; then + # ...and binutils + AC_PATH_PROG([AVROBJCOPY], [avr-objcopy], [no]) + if test x$AVROBJCOPY = xno; then succeeded=no fi + # ...and standard library (test not working yet) + #AC_CHECK_HEADERS([avr/io.h],[],[succeeded=no]) + + # Device access is via libftdi AC_LANG_PUSH(C) AC_CHECK_HEADERS([ftdi.h],[],[succeeded=no]) save_LIBS="$LIBS" - AC_SEARCH_LIBS(ftdi_init, [ftdi],[FTDI_LIBS="$LIBS"],[succeeded=no]) + AC_SEARCH_LIBS([ftdi_init], [ftdi],[FTDI_LIBS="$LIBS"],[succeeded=no]) LIBS="$save_LIBS" AC_LANG_POP - if test $succeeded = yes; then + if test x$succeeded = xyes; then EZDOP_INCLUDES='-I$(top_srcdir)/ezdop/src/host/ezdop/ -I$(top_srcdir)/ezdop/src/firmware/' EZDOP_LIBS='-lezdop' AC_SUBST(FTDI_LIBS) |