1*946379e7Schristosdnl Example for use of GNU gettext. 2*946379e7Schristosdnl Copyright (C) 2003, 2005 Free Software Foundation, Inc. 3*946379e7Schristosdnl This file is in the public domain. 4*946379e7Schristosdnl 5*946379e7Schristosdnl Configuration file - processed by autoconf. 6*946379e7Schristos 7*946379e7SchristosAC_INIT 8*946379e7SchristosAC_CONFIG_SRCDIR(hello.cs) 9*946379e7SchristosAM_INIT_AUTOMAKE(hello-csharp-forms, 0) 10*946379e7Schristos 11*946379e7Schristosdnl Check whether we can build C# programs at all. 12*946379e7Schristosgt_CSHARPCOMP 13*946379e7Schristosif test -n "$HAVE_CSHARPCOMP"; then 14*946379e7Schristos BUILDCSHARP=yes 15*946379e7Schristoselse 16*946379e7Schristos BUILDCSHARP=no 17*946379e7Schristosfi 18*946379e7SchristosAC_SUBST(BUILDCSHARP) 19*946379e7Schristos 20*946379e7Schristosdnl Check whether we can execute C# programs. 21*946379e7Schristosgt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4]) 22*946379e7Schristosif test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then 23*946379e7Schristos TESTCSHARP=yes 24*946379e7Schristoselse 25*946379e7Schristos TESTCSHARP=no 26*946379e7Schristosfi 27*946379e7SchristosAC_SUBST(TESTCSHARP) 28*946379e7Schristos 29*946379e7Schristosdnl Checks for needed libraries. 30*946379e7SchristosAM_PATH_PROG_WITH_TEST([GETTEXT_WITH_GNU_GETTEXT_DLL], [gettext], 31*946379e7Schristos [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/lib/GNU.Gettext.dll; }]) 32*946379e7Schristosif test -z "$GETTEXT_WITH_GNU_GETTEXT_DLL"; then 33*946379e7Schristos echo "Required library GNU.Gettext.dll not found." 1>&2 34*946379e7Schristos exit 1 35*946379e7Schristosfi 36*946379e7Schristoschangequote(,)dnl 37*946379e7Schristosbasedir=`echo "$GETTEXT_WITH_GNU_GETTEXT_DLL" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'` 38*946379e7Schristoschangequote([, ])dnl 39*946379e7SchristosGNU_GETTEXT_DLL="$basedir"/lib/GNU.Gettext.dll 40*946379e7SchristosGNU_GETTEXT_LDADD="-L $basedir/lib" 41*946379e7SchristosGNU_GETTEXT_LIBS="-l GNU.Gettext" 42*946379e7SchristosAC_SUBST([GNU_GETTEXT_LDADD]) 43*946379e7SchristosAC_SUBST([GNU_GETTEXT_LIBS]) 44*946379e7Schristos 45*946379e7Schristosdnl Support for the po directory. 46*946379e7SchristosAM_PO_SUBDIRS 47*946379e7Schristos 48*946379e7SchristosAC_CONFIG_FILES([Makefile]) 49*946379e7SchristosAC_CONFIG_FILES([csharpcomp.sh]) 50*946379e7SchristosAC_CONFIG_FILES([csharpexec.sh]) 51*946379e7SchristosAC_CONFIG_FILES([m4/Makefile]) 52*946379e7SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE]) 53*946379e7SchristosAC_OUTPUT 54