| 34 |
|
|
| 35 |
AC_PREREQ(2.57) |
AC_PREREQ(2.57) |
| 36 |
AC_REVISION($Revision$) |
AC_REVISION($Revision$) |
| 37 |
AC_INIT(avr-libc, 1.3.0.20050906, avr-libc-dev@nongnu.org) |
|
| 38 |
|
dnl library versioning -- modify these on releases |
| 39 |
|
dnl macro name value description |
| 40 |
|
m4_define([avr_libc_major], [1])dnl major version |
| 41 |
|
m4_define([avr_libc_minor], [3])dnl minor version |
| 42 |
|
m4_define([avr_libc_revision], [0])dnl revision (dot-dot version) |
| 43 |
|
m4_define([avr_libc_reldate], [20050912])dnl release date |
| 44 |
|
dnl end of library versioning data |
| 45 |
|
|
| 46 |
|
dnl odd minor number marks a development branch, append date to version there |
| 47 |
|
m4_if(m4_eval(avr_libc_minor % 2 == 1), [0], [dnl |
| 48 |
|
m4_define([avr_libc_version], |
| 49 |
|
avr_libc_major.avr_libc_minor.avr_libc_revision)dnl |
| 50 |
|
],[dnl |
| 51 |
|
m4_define([avr_libc_version], |
| 52 |
|
avr_libc_major.avr_libc_minor.avr_libc_revision.avr_libc_reldate)dnl |
| 53 |
|
])dnl |
| 54 |
|
m4_define([avr_libc_version_numeric], |
| 55 |
|
m4_eval(10000 * avr_libc_major + dnl |
| 56 |
|
100 * avr_libc_minor + dnl |
| 57 |
|
avr_libc_revision))dnl |
| 58 |
|
|
| 59 |
|
AC_INIT(avr-libc, avr_libc_version, avr-libc-dev@nongnu.org) |
| 60 |
AC_CONFIG_SRCDIR([doc/examples/demo/demo.c]) |
AC_CONFIG_SRCDIR([doc/examples/demo/demo.c]) |
| 61 |
AC_CONFIG_HEADER([config.h]) |
AC_CONFIG_HEADER([config.h]) |
| 62 |
|
|
| 63 |
|
dnl substitute M4 macros into shell variables |
| 64 |
|
AVR_LIBC_MAJOR=avr_libc_major |
| 65 |
|
AVR_LIBC_MINOR=avr_libc_minor |
| 66 |
|
AVR_LIBC_REVISION=avr_libc_revision |
| 67 |
|
AVR_LIBC_RELDATE=avr_libc_reldate |
| 68 |
|
AVR_LIBC_VERSION=avr_libc_version |
| 69 |
|
AVR_LIBC_VERSION_NUMERIC=avr_libc_version_numeric |
| 70 |
|
dnl ...and trigger Makefile.in substitutions |
| 71 |
|
AC_SUBST(AVR_LIBC_MAJOR) |
| 72 |
|
AC_SUBST(AVR_LIBC_MINOR) |
| 73 |
|
AC_SUBST(AVR_LIBC_REVISION) |
| 74 |
|
AC_SUBST(AVR_LIBC_RELDATE) |
| 75 |
|
AC_SUBST(AVR_LIBC_VERSION) |
| 76 |
|
AC_SUBST(AVR_LIBC_VERSION_NUMERIC) |
| 77 |
|
|
| 78 |
AC_CANONICAL_BUILD |
AC_CANONICAL_BUILD |
| 79 |
AC_CANONICAL_HOST |
AC_CANONICAL_HOST |
| 80 |
|
|
| 90 |
AC_MSG_WARN() |
AC_MSG_WARN() |
| 91 |
AC_MSG_WARN(AVR-LIBC must be built using an avr cross-compiler.) |
AC_MSG_WARN(AVR-LIBC must be built using an avr cross-compiler.) |
| 92 |
AC_MSG_WARN(Try configuring with:) |
AC_MSG_WARN(Try configuring with:) |
| 93 |
AC_MSG_WARN(\"$0 --build=$build_alias --host=avr\") |
AC_MSG_WARN("$0 --build=$build_alias --host=avr") |
| 94 |
AC_MSG_WARN() |
AC_MSG_WARN() |
| 95 |
AC_MSG_ERROR(aborting configure) |
AC_MSG_ERROR(aborting configure) |
| 96 |
else |
else |
| 107 |
AC_MSG_WARN() |
AC_MSG_WARN() |
| 108 |
AC_MSG_WARN(Avr-libc must be built using an avr cross-compiler.) |
AC_MSG_WARN(Avr-libc must be built using an avr cross-compiler.) |
| 109 |
AC_MSG_WARN(Try configuring with:) |
AC_MSG_WARN(Try configuring with:) |
| 110 |
AC_MSG_WARN(\"$0 --build=$build --host=avr\") |
AC_MSG_WARN("$0 --build=$build --host=avr") |
| 111 |
AC_MSG_WARN() |
AC_MSG_WARN() |
| 112 |
AC_MSG_ERROR(aborting configure) |
AC_MSG_ERROR(aborting configure) |
| 113 |
;; |
;; |
| 171 |
no) enable_doc=no ;; |
no) enable_doc=no ;; |
| 172 |
*) AC_MSG_ERROR(bad value ${enableval} for global doc option) ;; |
*) AC_MSG_ERROR(bad value ${enableval} for global doc option) ;; |
| 173 |
esac], [enable_doc=no])dnl |
esac], [enable_doc=no])dnl |
| 174 |
|
/design/user/jwunsch/share/autoconf/Autom4te/XFile.pm |
| 175 |
dnl Various documentation options. By default, we enable all of them, |
dnl Various documentation options. By default, we enable all of them, |
| 176 |
dnl i. e. HTML, Postscript, PDF, and Unix-style man pages. |
dnl i. e. HTML, Postscript, PDF, and Unix-style man pages. |
| 177 |
AC_ARG_ENABLE(html-doc, |
AC_ARG_ENABLE(html-doc, |
| 228 |
dnl @version Id: check_doxygen.m4,v 1.2 2002/02/10 23:22:40 troth Exp |
dnl @version Id: check_doxygen.m4,v 1.2 2002/02/10 23:22:40 troth Exp |
| 229 |
dnl @author Theodore A. Roth <troth@openavr.org> |
dnl @author Theodore A. Roth <troth@openavr.org> |
| 230 |
dnl |
dnl |
| 231 |
AC_DEFUN(CHECK_DOXYGEN,[dnl |
AC_DEFUN([CHECK_DOXYGEN],[dnl |
| 232 |
dnl |
dnl |
| 233 |
AC_MSG_CHECKING([for doxygen]) |
AC_MSG_CHECKING([for doxygen]) |
| 234 |
dox_ver=`doxygen --version 2>/dev/null` |
dox_ver=`doxygen --version 2>/dev/null` |
| 286 |
dnl @version Id: check_doxygen.m4,v 1.2 2002/02/10 23:22:40 troth Exp |
dnl @version Id: check_doxygen.m4,v 1.2 2002/02/10 23:22:40 troth Exp |
| 287 |
dnl @author Theodore A. Roth <troth@openavr.org> |
dnl @author Theodore A. Roth <troth@openavr.org> |
| 288 |
dnl |
dnl |
| 289 |
AC_DEFUN(CHECK_PNG_UTILS,[dnl |
AC_DEFUN([CHECK_PNG_UTILS],[dnl |
| 290 |
dnl |
dnl |
| 291 |
AC_MSG_CHECKING([for pngtopnm]) |
AC_MSG_CHECKING([for pngtopnm]) |
| 292 |
has_pngtopnm=`pngtopnm --version 2>&1 | grep -c Version` |
has_pngtopnm=`pngtopnm --version 2>&1 | grep -c Version` |
| 350 |
CFLAGS="-mmcu=$1" |
CFLAGS="-mmcu=$1" |
| 351 |
CC=`echo "${CC}" | sed 's/-mmcu=avr.//'` |
CC=`echo "${CC}" | sed 's/-mmcu=avr.//'` |
| 352 |
AC_MSG_CHECKING(if ${CC} has support for $1) |
AC_MSG_CHECKING(if ${CC} has support for $1) |
| 353 |
AC_TRY_COMPILE( |
AC_COMPILE_IFELSE( |
| 354 |
[], |
[AC_LANG_SOURCE([],[])], |
|
[], |
|
| 355 |
[has_dev_support=yes], |
[has_dev_support=yes], |
| 356 |
[has_dev_support=no] |
[has_dev_support=no] |
| 357 |
) |
) |