Source

lrc / configure.in

Full commit
#      configure.in
#
#      Copyright 2011 Andreas Tscharner <andy@vis.ethz.ch>
#
#      This program is free software; you can redistribute it and/or modify
#      it under the terms of the GNU General Public License as published by
#      the Free Software Foundation; either version 2 of the License, or
#      (at your option) any later version.
#
#      This program is distributed in the hope that it will be useful,
#      but WITHOUT ANY WARRANTY; without even the implied warranty of
#      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#      GNU General Public License for more details.
#
#      You should have received a copy of the GNU General Public License
#      along with this program; if not, write to the Free Software
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#      MA 02110-1301, USA.


#
# Initialize
AC_INIT([Linux Resource Compiler], [0.1], [andy@vis.ethz.ch], [lrc-0.1])
AC_CONFIG_SRCDIR(src/lrcExceptions.hxx)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(src/lrc_config.h)

#
# Check for programs
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_CHECK_PROG(doxy_ok, doxygen, yes, no)

#
# Check for libraries

#
# Check for header files
AC_CHECK_HEADERS_ONCE([unistd.h])
AC_CHECK_HEADERS_ONCE([sys/stat.h])

#
# Check for typedefs, structures and compiler characteristics
AC_C_CONST
AC_C_INLINE
#AC_CXX_COMPILE_STDCXX_0X    not supported at the moment

#
# Check for some special things
AC_ARG_ENABLE(debug, [  --enable-debug          Enable debugging (debug flags, no optimization)],
              [LRC_DEBUG="yes"], [LRC_DEBUG="no (optimize)"])
AM_CONDITIONAL(DEBUG, test "$LRC_DEBUG" = yes)
AM_CONDITIONAL(HAVE_DOXYGEN, test "$doxy_ok" = yes)

#
# Check for library functions

#
# Create Makefiles
AC_CONFIG_FILES(Makefile              \
                src/Makefile          \
                src/compiler/Makefile \
                src/lib/Makefile      \
                doc/Makefile)
AC_OUTPUT