xsp/configure.in

136 строки
3.0 KiB
Plaintext

AC_PREREQ(2.57)
AC_INIT(src/server.cs)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(xsp, 1.2.5)
AM_MAINTAINER_MODE
AC_PROG_INSTALL
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
#
# --enable-tracing
#
AC_MSG_CHECKING([if tracing is requested])
AC_ARG_ENABLE([tracing],
AC_HELP_STRING([--enable-tracing],[enable producing XSP tracing messages]),
[enable_tracing=$withval],
[enable_tracing=no])
if test "x$enable_tracing" != "xno" ; then
AC_MSG_RESULT([yes])
WEBTRACING="-define:WEBTRACE -define:TRACE"
else
AC_MSG_RESULT([no])
WEBTRACING=""
fi
AC_PATH_PROG(CSC, csc, no)
AC_PATH_PROG(MCS, mcs, no)
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(GACUTIL, gacutil, no)
AC_PATH_PROG(SN, sn, no)
CS="C#"
if test "x$CSC" = "xno" -a "x$MCS" = "xno" ; then
dnl AC_MSG_ERROR([You need to install a C# compiler])
AC_MSG_ERROR([No $CS compiler found])
fi
if test "x$MCS" = "xno" ; then
MCS=$CSC
fi
if test "x$GMCS" != "xno" ; then
AC_MSG_CHECKING([whether gmcs is actually able to compile...])
echo "class Foo { public static void Main() {} }" > test.cs
if [ gmcs -r:System.Web.dll -out:test.exe test.cs > /dev/null 2>&1 ]
then
AC_MSG_RESULT(yes)
else
GMCS=no
AC_MSG_RESULT(no)
fi
rm -f test.cs test.exe
fi
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
;;
esac
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
AM_CONDITIONAL(NET_2_0, test ! x$GMCS = xno)
AM_CONDITIONAL(XSP_ONLY, test x$platform_win32 = xyes)
echo "$CS compiler: $MCS"
test x$GMCS = xno || echo "$CS 2.0 compiler: $GMCS"
GACUTIL_FLAGS='-root $(DESTDIR)$(prefix)/lib'
# Put the version in the new required format (for svn revisions)
export VERSION
[XSP_VERSION=$($AWK 'BEGIN {
split (ENVIRON["VERSION"] ".0.0.0", vsplit, ".")
if(length(vsplit [1]) > 4) {
split (substr(ENVIRON["VERSION"], 0, 4) "." substr(ENVIRON["VERSION"], 5) ".0.0", vsplit, ".")
}
print vsplit [1] "." vsplit [2] "." vsplit [3] "." vsplit [4]
}')]
AC_SUBST(WEBTRACING)
AC_SUBST(MCS)
AC_SUBST(GMCS)
AC_SUBST(RUNTIME)
AC_SUBST(GACUTIL)
AC_SUBST(GACUTIL_FLAGS)
AC_SUBST(SN)
AC_SUBST(VERSION)
AC_SUBST(XSP_VERSION)
AC_OUTPUT([
Makefile
man/xsp.1
man/dbsessmgr.1
man/asp-state.1
man/mono-asp-apps.1
man/Makefile
scripts/Makefile
src/Makefile
src/AssemblyInfo.cs
src/AssemblyInfoModMono.cs
src/Mono.WebServer/AssemblyInfo.cs
src/Mono.WebServer/AssemblyInfo2.cs
src/Mono.WebServer/Makefile
src/Mono.WebServer/xsp.pc
src/Mono.WebServer/xsp-2.pc
test/Makefile
test/1.1/Makefile
test/1.1/authtest/Makefile
test/1.1/asp.net/Makefile
test/1.1/webcontrols/Makefile
test/1.1/html/Makefile
test/1.1/webservice/Makefile
test/1.1/databind/Makefile
test/1.1/handlers/Makefile
test/1.1/customcontrol/Makefile
test/2.0/Makefile
test/2.0/menu/Makefile
test/2.0/treeview/Makefile
test/2.0/masterpages/Makefile
tools/Makefile
tools/asp_state/Makefile
tools/asp_state/AssemblyInfo.cs
tools/dbsessmgr/Makefile
tools/dbsessmgr/AssemblyInfo.cs
docs/Makefile
])