2 dnl Copyright (C) 2004-2005, 2009-2021 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.
7 # Sets CSHARP_CHOICE to the preferred C# implementation:
8 # 'mono' or 'any' or 'no'.
9 AC_DEFUN([gt_CSHARP_CHOICE],
11 AC_MSG_CHECKING([for preferred C[#] implementation])
12 AC_ARG_ENABLE([csharp],
13 [ --enable-csharp[[=IMPL]] choose preferred C[#] implementation (mono)],
14 [CSHARP_CHOICE="$enableval"],
16 AC_SUBST([CSHARP_CHOICE])
17 AC_MSG_RESULT([$CSHARP_CHOICE])
18 case "$CSHARP_CHOICE" in
20 AC_DEFINE([CSHARP_CHOICE_MONO], [1],
21 [Define if mono is the preferred C# implementation.])