Skip to content
Snippets Groups Projects
Select Git revision
  • b504f160ca5cd5903414c88fb69aff572073f88f
  • master default protected
  • julia protected
  • 6.x protected
  • python-codegen
  • llvm-15
  • 5.x protected
  • 4.6 protected
  • uop
  • rework_pac
  • aux_vars_fix
  • julia-7.0.0
  • julia-6.4.0
  • julia-6.3.0
  • julia-6.2.0
15 results

Shocks.cc

Blame
  • configure.ac 11.30 KiB
    dnl Process this file with autoconf to produce a configure script.
    
    dnl Copyright (C) 2009-2014 Dynare Team
    dnl
    dnl This file is part of Dynare.
    dnl
    dnl Dynare is free software: you can redistribute it and/or modify
    dnl it under the terms of the GNU General Public License as published by
    dnl the Free Software Foundation, either version 3 of the License, or
    dnl (at your option) any later version.
    dnl
    dnl Dynare is distributed in the hope that it will be useful,
    dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
    dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    dnl GNU General Public License for more details.
    dnl
    dnl You should have received a copy of the GNU General Public License
    dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
    
    AC_PREREQ([2.62])
    AC_INIT([dynare], [4.5-unstable])
    AC_CONFIG_SRCDIR([preprocessor/DynareMain.cc])
    AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax])
    
    AC_PROG_CC
    AC_PROG_CXX
    
    AC_CANONICAL_HOST
    case ${host_os} in
      *mingw32*)
        # On mingw32, we don't want dynamic libgcc
        # Note that static-libstdc++ is only supported since GCC 4.5 (but generates no error on older versions)
        LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -static-libgfortran"
        have_windows="yes"
        ;;
      *cygwin*)
        AC_MSG_WARN([You are compiling for the Cygwin target. This means that the preprocessor will])
        AC_MSG_WARN([not run from MATLAB unless you add the Cygwin DLL to the path.])
        AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
        if test "x$F77" = "x"; then
          # On Cygwin 1.7, g77 comes has version 3, and is not compatible with default gcc/g++ which has version 4
          # And by default, the AC_PROG_F77 will pick up g77 if it is present (even if gfortran is also here)
          F77=gfortran
        fi
        have_windows="yes"
        ;;
    esac
    
    # Use C++ for testing headers
    AC_LANG([C++])
    
    CXXFLAGS="$CXXFLAGS -Wall -Wno-parentheses"
    
    # If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
    AC_CHECK_PROGS([AR], [ar ${host_alias}-ar])
    
    AC_PROG_RANLIB
    AM_PROG_AR
    
    AX_PROG_LN_S
    
    AC_PROG_MKDIR_P
    
    AM_PROG_LEX
    # Hack to get lex include dir, ticket #575
    AC_PATH_PROG([LEXPATH], [$LEX])
    AC_SUBST([LEXINC], [`eval "echo $LEXPATH | sed 's|$LEX$|../include|'"`])
    
    AC_CHECK_PROG([YACC], [bison], [bison])
    if test "x$YACC" = "x"; then