diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /cvs/cvsweb.cgi/code/snowballs/configure.in | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
3 files changed, 688 insertions, 0 deletions
diff --git a/cvs/cvsweb.cgi/code/snowballs/configure.in b/cvs/cvsweb.cgi/code/snowballs/configure.in new file mode 100644 index 00000000..0377fb3d --- /dev/null +++ b/cvs/cvsweb.cgi/code/snowballs/configure.in @@ -0,0 +1,134 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : cvs</TITLE> + <META name="keywords" content="freesoftware,nel,newt,snowballs,richard stallman,GNU,Multi-User Online World"> + + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/free/" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-free.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/free/" TITLE="Free Software">Free software</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/cvs/"><img src="http://www.nevrax.org/inc/img/t_cvs.gif" ALT="cvs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + +<!-- title --> +<table width=100%><tr><td align=left><b> <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/">snowballs</a> / configure.in</b></td><td align=right><b></b></td></TR></TABLE> + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>configure.in</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<P> +<p>Default branch: MAIN<BR> +<HR size=1 NOSHADE><P><a NAME="rev1.1"></a><a NAME="HEAD"></a><a NAME="MAIN"></a> + Revision <A HREF="configure.in?rev=1.1&content-type=text/x-cvsweb-markup"><b>1.1</b></A> / (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1&content-type=text/plain" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1&content-type=text/plain','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>) - <a href="/cvs/cvsweb.cgi/code/snowballs/configure.in?annotate=1.1">annotate</a> - <A HREF="/cvs/cvsweb.cgi/code/snowballs/configure.in?r1=1.1">[select for diffs]</A> +, <i>Tue Apr 17 13:00:32 2001 UTC</i> (13 months, 3 weeks ago) by <i>valignat</i> +<BR>Branch: <b><A HREF="configure.in?only_with_tag=MAIN">MAIN</A> +</b> +<BR>CVS Tags: <b><A HREF="configure.in?only_with_tag=HEAD">HEAD</A> +</b><BR>Diff<PRE> +MOVED: client directory to snowballs/client and server/moves_servive to snowballs/server/moves_servive +</PRE> + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Request Diffs</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<P> +<P> +<FORM METHOD="GET" ACTION="/cvs/cvsweb.cgi/code/snowballs/configure.in.diff" NAME="diff_select"> +Diffs between +<SELECT NAME="r1"> +<OPTION VALUE="text" SELECTED>Use Text Field +<OPTION VALUE="1:MAIN">MAIN +<OPTION VALUE="1.1:HEAD">HEAD +</SELECT> +<INPUT TYPE="TEXT" SIZE="12" NAME="tr1" VALUE="1.1" onChange='document.diff_select.r1.selectedIndex=0'> + and +<SELECT NAME="r2"> +<OPTION VALUE="text" SELECTED>Use Text Field +<OPTION VALUE="1:MAIN">MAIN +<OPTION VALUE="1.1:HEAD">HEAD +</SELECT> +<INPUT TYPE="TEXT" SIZE="12" NAME="tr2" VALUE="1.1" onChange='docuement.diff_select.r2.selectedIndex=0'> +<BR>Type of Diff should be a <SELECT NAME="f"> +<OPTION VALUE=h SELECTED>Colored Diff<OPTION VALUE=H>Long Colored Diff<OPTION VALUE=u>Unidiff<OPTION VALUE=c>Context Diff<OPTION VALUE=s>Side by Side</SELECT><INPUT TYPE=SUBMIT VALUE=" Get Diffs "> +</FORM> + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Select branch</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<P> +<P> +<A name=branch></A> +<FORM METHOD="GET" ACTION="/cvs/cvsweb.cgi/code/snowballs/configure.in"> +View only Branch: +<SELECT NAME="only_with_tag" onchange="submit()"> +<OPTION VALUE="">Show all branches +<OPTION>MAIN +</SELECT> +<INPUT TYPE=SUBMIT VALUE=" View Branch "> +</FORM> +<A name=logsort></A> +<FORM METHOD="GET" ACTION="/cvs/cvsweb.cgi/code/snowballs/configure.in"> +Sort log by: +<SELECT NAME="logsort" onchange="submit()"> +<OPTION VALUE=cvs>Not sorted<OPTION VALUE=date SELECTED>Commit date<OPTION VALUE=rev>Revision</SELECT> +<INPUT TYPE=SUBMIT VALUE=" Sort "> +</FORM> + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML></BODY></HTML> diff --git a/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup&sortby=log/index.html b/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup&sortby=log/index.html new file mode 100644 index 00000000..bc2d6d3c --- /dev/null +++ b/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup&sortby=log/index.html @@ -0,0 +1,277 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/snowballs/configure.in - view - 1.1</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in?sortby=log"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in?sortby=log">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/?sortby=log">snowballs</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/?sortby=log">snowballs</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/configure.in?sortby=log">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1&sortby=log" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.1</B>, <i>Tue Apr 17 13:00:32 2001 UTC</i> (13 months, 1 week ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>CVS Tags: <b>HEAD</b><PRE> +MOVED: client directory to snowballs/client and server/moves_servive to snowballs/server/moves_servive +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for client +dnl +dnl $Id: configure.in,v 1.1 2001/04/17 13:00:32 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowball, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib=<path> path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile the client (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the client (www.nevrax.org)]) +) + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile the client (www.freetype.org).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +dnl CXXFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" +dnl LIBS="$LIBS ${FREETYPE_LIBS}" +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include <freetype/freetype.h> +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile the client (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/src/Makefile \ + server/Makefile \ + server/moves_service/Makefile \ +) + + +dnl End of configure.in + +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..096c531a --- /dev/null +++ b/cvs/cvsweb.cgi/code/snowballs/configure.in?rev=1.1&content-type=text/x-cvsweb-markup/index.html @@ -0,0 +1,277 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/snowballs/configure.in - view - 1.1</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/">snowballs</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/">snowballs</a> / <a href="/cvs/cvsweb.cgi/code/snowballs/configure.in">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.1</B>, <i>Tue Apr 17 13:00:32 2001 UTC</i> (13 months, 3 weeks ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>CVS Tags: <b>HEAD</b><PRE> +MOVED: client directory to snowballs/client and server/moves_servive to snowballs/server/moves_servive +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for client +dnl +dnl $Id: configure.in,v 1.1 2001/04/17 13:00:32 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowball, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib=<path> path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile the client (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the client (www.nevrax.org)]) +) + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile the client (www.freetype.org).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +dnl CXXFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" +dnl LIBS="$LIBS ${FREETYPE_LIBS}" +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include <freetype/freetype.h> +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile the client (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/src/Makefile \ + server/Makefile \ + server/moves_service/Makefile \ +) + + +dnl End of configure.in + +</PRE>
\ No newline at end of file |