configure.ac
changeset 519 9605e051942f
parent 310 a9e8f310507f
child 457 69928a704ffb
equal deleted inserted replaced
20:c5365d9b7c10 21:239a3a4a325b
    16 AC_CONFIG_AUX_DIR([build-aux])
    16 AC_CONFIG_AUX_DIR([build-aux])
    17 AC_CONFIG_MACRO_DIR([m4])
    17 AC_CONFIG_MACRO_DIR([m4])
    18 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
    18 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
    19 AC_CONFIG_SRCDIR([lemon/list_graph.h])
    19 AC_CONFIG_SRCDIR([lemon/list_graph.h])
    20 AC_CONFIG_HEADERS([config.h lemon/config.h])
    20 AC_CONFIG_HEADERS([config.h lemon/config.h])
    21 
       
    22 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
       
    23 
    21 
    24 dnl Do compilation tests using the C++ compiler.
    22 dnl Do compilation tests using the C++ compiler.
    25 AC_LANG([C++])
    23 AC_LANG([C++])
    26 
    24 
    27 dnl Checks for programs.
    25 dnl Checks for programs.
    44 else
    42 else
    45   AC_MSG_RESULT([no])
    43   AC_MSG_RESULT([no])
    46 fi
    44 fi
    47 
    45 
    48 dnl Set custom compiler flags when using g++.
    46 dnl Set custom compiler flags when using g++.
    49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then
    47 if test "$GXX" = yes -a "$ICC" = no; then
    50   CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    48   WARNINGCXXFLAGS="-Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
    51 fi
    49 fi
       
    50 AC_SUBST([WARNINGCXXFLAGS])
    52 
    51 
    53 dnl Checks for libraries.
    52 dnl Checks for libraries.
    54 #LX_CHECK_GLPK
    53 #LX_CHECK_GLPK
    55 #LX_CHECK_CPLEX
    54 #LX_CHECK_CPLEX
    56 #LX_CHECK_SOPLEX
    55 #LX_CHECK_SOPLEX
   111 echo '****************************** SUMMARY ******************************'
   110 echo '****************************** SUMMARY ******************************'
   112 echo
   111 echo
   113 echo Package version............... : $PACKAGE-$VERSION
   112 echo Package version............... : $PACKAGE-$VERSION
   114 echo
   113 echo
   115 echo C++ compiler.................. : $CXX
   114 echo C++ compiler.................. : $CXX
   116 echo C++ compiles flags............ : $CXXFLAGS
   115 echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
   117 echo
   116 echo
   118 #echo GLPK support.................. : $lx_glpk_found
   117 #echo GLPK support.................. : $lx_glpk_found
   119 #echo CPLEX support................. : $lx_cplex_found
   118 #echo CPLEX support................. : $lx_cplex_found
   120 #echo SOPLEX support................ : $lx_soplex_found
   119 #echo SOPLEX support................ : $lx_soplex_found
   121 #echo
   120 #echo