maint: update copyright
[gnulib.git] / m4 / csharp.m4
1 # csharp.m4 serial 3
2 dnl Copyright (C) 2004-2005, 2009-2014 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 # Sets CSHARP_CHOICE to the preferred C# implementation:
8 # 'pnet' or 'mono' or 'any' or 'no'.
9 AC_DEFUN([gt_CSHARP_CHOICE],
10 [
11   AC_MSG_CHECKING([for preferred C[#] implementation])
12   AC_ARG_ENABLE([csharp],
13     [  --enable-csharp[[=IMPL]]  choose preferred C[#] implementation (pnet or mono)],
14     [CSHARP_CHOICE="$enableval"],
15     CSHARP_CHOICE=any)
16   AC_SUBST([CSHARP_CHOICE])
17   AC_MSG_RESULT([$CSHARP_CHOICE])
18   case "$CSHARP_CHOICE" in
19     pnet)
20       AC_DEFINE([CSHARP_CHOICE_PNET], [1],
21         [Define if pnet is the preferred C# implementation.])
22       ;;
23     mono)
24       AC_DEFINE([CSHARP_CHOICE_MONO], [1],
25         [Define if mono is the preferred C# implementation.])
26       ;;
27   esac
28 ])