]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/platforms/mica/uisp/configure.in
Merge devel code into the trunk.
[tinyos-2.x.git] / tools / platforms / mica / uisp / configure.in
diff --git a/tools/platforms/mica/uisp/configure.in b/tools/platforms/mica/uisp/configure.in
new file mode 100644 (file)
index 0000000..9d70496
--- /dev/null
@@ -0,0 +1,78 @@
+#
+# $Id$
+#
+# uisp - The Micro In-System Programmer for Atmel AVR microcontrollers.
+# Copyright (C) 2002, 2003  Theodore A. Roth
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+dnl Make sure we're using the correct version of autoconf
+AC_PREREQ(2.50)
+
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(src/Main.C)
+AC_CONFIG_AUX_DIR(config)
+AM_CONFIG_HEADER(src/config.h:src/config-h.in)
+AM_INIT_AUTOMAKE(uisp, 20050519tinyos)
+AC_CANONICAL_HOST
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_INSTALL
+
+dnl Checks for libraries.
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+AC_HEADER_TIME
+
+dnl Checks for library functions.
+AC_PROG_GCC_TRADITIONAL
+AC_FUNC_MEMCMP
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS(gettimeofday select strstr strtol strtod)
+
+AC_SUBST(ac_aux_dir)
+
+# Set the DATE variable for the man page
+DATE=`date "+%B, %Y"` 
+
+AC_SUBST(DATE)
+
+AC_MSG_CHECKING(for cygwin)
+case $host in
+  *-*-cygwin*)
+    AC_MSG_RESULT(yes)
+    CYGWIN=yes
+    ;;
+  *)
+    AC_MSG_RESULT(no)
+esac
+
+AM_CONDITIONAL([CYGWIN], [test "$CYGWIN"])
+
+AC_OUTPUT( \
+       src/Makefile \
+       kernel/Makefile \
+       kernel/win32/Makefile \
+       uisp.1 \
+       uisp.spec \
+       Makefile)