build.cc

Go to the documentation of this file.
00001 //
00002 // $Id: build.cc,v 1.2 2003/12/28 23:09:28 cholm Exp $
00003 //
00004 //    build.cc 
00005 //    Copyright (C) 2002  Christian Holm <cholm@linux.HAL3000> 
00006 //   
00007 //    This library is free software; you can redistribute it and/or
00008 //    modify it under the terms of the GNU Lesser General Public
00009 //    License as published by the Free Software Foundation; either
00010 //    version 2.1 of the License, or (at your option) any later
00011 //    version.
00012 //   
00013 //    This library is distributed in the hope that it will be useful,
00014 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //    GNU Lesser General Public License for more details.
00017 //   
00018 //    You should have received a copy of the GNU Lesser General Public
00019 //    License along with this library; if not, write to the Free
00020 //    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00021 //    MA 02111-1307 USA
00022 //
00023 /** @file    build.cc
00024     @author  Christian Holm Christensen <cholm@nbi.dk>
00025     @date    Mon Dec 29 00:07:31 2003
00026     @brief   Using FILE-- in a project (documentation)
00027 */
00028 /** @page build Using FILE-- in your project 
00029 
00030     @b FILE-- consist entirely of declaration (or header) files.
00031     All you need to do, is to include those file in your project
00032     code.  You can copy the header files into your source code, or you
00033     can use them from their installed location - it's entirely up to
00034     you, though you should read and understand the terms of the
00035     @link lgpl licence@endlink 
00036 
00037     The included file <tt>filemm.m4</tt> defines the @b Autoconf macro 
00038     <tt>AM_FILEMM_PATH</tt> that you can use in your
00039     <tt>configure.ac</tt> file.  It defines the substitution variable
00040     <tt>FILEMM_CPPFLAGS</tt> to contain the path to the @b FILE--
00041     header files.  Put that macro in your configuration file 
00042     @verbatim
00043     ...
00044     AM_FILEMM_PATH
00045     ... 
00046     @endverbatim 
00047     
00048     and in your <tt>Makefile.am</tt>s, do
00049     @verbatim 
00050     ...
00051     AM_CPPFLAGS         = $(FILEMM_CPPFLAGS) 
00052     ...
00053     @endverbatim 
00054 
00055     Alternatively, you can use the included script
00056     <tt>filemm-config</tt> to obtain the information. 
00057 
00058     @section compat Compatibility 
00059 
00060     Some older compilers does not provide standard headers, in
00061     particular <tt>std::char_traits<typename Char_Type></tt> may be
00062     missing, and <tt>std::streambuf</tt> may not define the nested
00063     types <tt>std::streambuf::char_type</tt>,
00064     <tt>std::streambuf::int_type</tt>, and
00065     <tt>std::streambuf::traits_type</tt>. 
00066 
00067     In case that <tt>std::char_traits<typename Char_Type></tt> isn't
00068     defined, FILE-- provides an implementation - just define 
00069     @c FILEMM_NEED_CHAR_TRAITS in your source file before including
00070     filemm/streambuf.hh 
00071     @code 
00072     #define FILEMM_NEED_CHAR_TRAITS
00073     #ifndef FILEMM_streambuf
00074     # include <filemm/streambuf.hh>
00075     #endif
00076     @endcode
00077     
00078     In case <tt>std::streambuf</tt> doesn't define the nested types,
00079     define @c FILEMM_NEED_STREAMBUF_TYPES in your source file before
00080     including filemm/streambuf.hh 
00081     @code 
00082     #define FILEMM_NEED_STREAMBUF_TYPES
00083     #ifndef FILEMM_streambuf
00084     # include <filemm/streambuf.hh>
00085     #endif
00086     @endcode
00087 
00088     If you use the provided @b Autoconf macros, all these checks can
00089     be done for you automatically.  Put lines like 
00090     @verbatim 
00091     AM_FILEMM_PATH
00092     AM_FILEMM_NEED_CHAR_TRAITS
00093     AM_FILEMM_NEED_STREAMBUF_H
00094     AM_FILEMM_NEED_STREAMBUF_TYPES
00095     @endverbatim
00096     in your @c configure.ac file, and include the (optional)
00097     configuration header before including filemm/streambuf.hh 
00098     @code
00099     #ifndef HAVE_CONFIG_H
00100     # include "config.h"   // Name may vary depending on AC_CONFIG_HEADERS
00101     #endif
00102     #ifndef FILEMM_streambuf
00103     # include <filemm/streambuf.hh>
00104     #endif
00105     @endcode 
00106 
00107     @see @ref wchar 
00108 */
00109 #error This file is not for compilation
00110 // 
00111 // EOF
00112 //
Top of page
Last update Wed Apr 13 07:51:02 2005
Christian Holm
Created by DoxyGen 1.4.2