COIN-OR::LEMON - Graph Library

Changeset 515:7992dcb0d0e6 in lemon


Ignore:
Timestamp:
02/20/09 19:06:10 (10 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Add long long checking to build systems (#230)

Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r503 r515  
    1414INCLUDE(FindDoxygen)
    1515INCLUDE(FindGhostscript)
     16
     17INCLUDE(CheckTypeSize)
     18CHECK_TYPE_SIZE("long long" LONG_LONG)
    1619
    1720ENABLE_TESTING()
  • configure.ac

    r503 r515  
    2424dnl Do compilation tests using the C++ compiler.
    2525AC_LANG([C++])
     26
     27dnl Check the existence of long long type.
     28AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no])
     29if test x"$long_long_found" = x"yes"; then
     30  AC_DEFINE([HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
     31fi
    2632
    2733dnl Checks for programs.
     
    117123echo C++ compiles flags............ : $CXXFLAGS
    118124echo
     125echo Compiler supports long long... : $long_long_found
     126echo
    119127#echo GLPK support.................. : $lx_glpk_found
    120128#echo CPLEX support................. : $lx_cplex_found
  • lemon/bits/default_map.h

    r314 r515  
    9797
    9898
    99 #if defined __GNUC__ && !defined __STRICT_ANSI__
     99#if defined HAVE_LONG_LONG
    100100
    101101  // long long
  • lemon/config.h.in

    r1 r515  
    44/* Define to 1 if you have GLPK. */
    55#undef HAVE_GLPK
     6
     7/* Define to 1 if you have long long */
     8#undef HAVE_LONG_LONG
  • lemon/tolerance.h

    r280 r515  
    372372  };
    373373
    374 #if defined __GNUC__ && !defined __STRICT_ANSI__
     374#if HAVE_LONG_LONG
    375375
    376376  ///Long long integer specialization of Tolerance.
Note: See TracChangeset for help on using the changeset viewer.