support for target --with-contiki in configure

This target is to avoid accidential overwriting of hard-coded Makefile and
config.h by configure. When called with --with-contiki, the files
Makefile.contiki and config.h.contiki are copied to Makefile and config.h,
respectively.
This commit is contained in:
Olaf Bergmann committed 2012-01-06 16:52:28 +01:00
1 parent d1e394bec8
commit ec1d50f7c3
3 files changed
+10 -1

No files matched your search

View File
File renamed without changes.
View File
File renamed without changes.
+10 -1
View File
@@ -7,9 +7,18 @@
# README for terms of use.
AC_PREREQ([2.65])
AC_INIT([libcoap], [0.6.0])
AC_INIT([libcoap], [1.8.0])
AC_CONFIG_SRCDIR([coap.h])
# First check for Contiki build to quit configure before any other test
AC_ARG_WITH(contiki,
[AS_HELP_STRING([--with-contiki],[build libcoap for the Contiki OS])],
[cp -p Makefile.contiki Makefile
cp -p config.h.contiki config.h
AC_MSG_NOTICE([Contiki build prepared])
exit 0],
[])
# Checks for programs.
AC_PROG_MAKE_SET
AC_PROG_CC