source: ThirdParty/Glpk/branches/autotools-update/glpk_config.patch @ 4051

Last change on this file since 4051 was 4051, checked in by stefan, 5 months ago

add COIN-OR version of glpk config files

  • adapt captureConfigFiles to store them in dir glpk_config_files
  • adapt get.Glpk to copy them from glpk_config_files
  • rename glpk-4.65_config.patch to glpk_config.patch, as everything is 4.65 specific here anyway
File size: 2.0 KB
  • glpk/configure.ac

     
    88
    99AM_INIT_AUTOMAKE
    1010
     11# Set defaults to disable automatic execution of autotools and use silent
     12# rules. This matches COIN defaults. If you need to rebuild from autotools
     13# sources, use COIN run_autotools. DO NOT use the libtool macros in the local
     14# m4 directory (run_autotools will avoid this, but the maintainer mode rules
     15# will not).
     16
     17AM_MAINTAINER_MODE
     18AM_SILENT_RULES([yes])
     19CFLAGS="$ctpglpk_cv_cflags"
     20
    1121AC_CONFIG_HEADERS([config.h])
    1222
    1323AC_ARG_WITH(gmp,
     
    175185   AC_MSG_RESULT([no])
    176186fi
    177187
     188# Patched to add Msys to the set of Windows environments.
     189
    178190AC_MSG_CHECKING(
    179191   [if libtool needs -no-undefined flag to build shared libraries])
    180192case "${host}" in
    181    *-*-cygwin* | *-*-mingw* | *-*-aix*)
     193   *-*-cygwin* | *-*-mingw* | *-*-aix* | *-*-msys*)
    182194      ## Add in the -no-undefined flag to LDFLAGS for libtool.
    183195      AC_MSG_RESULT([yes])
    184196      NOUNDEFINED=" -no-undefined"
  • glpk/examples/Makefile.am

     
    22
    33AM_CPPFLAGS = -I$(srcdir)/../src
    44
    5 LDADD = ../src/libglpk.la
     5# Change name from libglpk to libcoinglpk.
     6
     7LDADD = ../src/libcoinglpk.la
    68
    79bin_PROGRAMS = glpsol
    810
  • glpk/src/Makefile.am

     
    22
    33include_HEADERS = glpk.h
    44
    5 lib_LTLIBRARIES = libglpk.la
     5# Change name from libglpk to libcoinglpk.
    66
    7 libglpk_la_CPPFLAGS = \
     7lib_LTLIBRARIES = libcoinglpk.la
     8
     9libcoinglpk_la_CPPFLAGS = \
    810-I$(srcdir) \
    911-I$(srcdir)/amd \
    1012-I$(srcdir)/api \
     
    2123-I$(srcdir)/simplex \
    2224-I$(srcdir)/zlib
    2325
    24 libglpk_la_LDFLAGS = \
     26libcoinglpk_la_LDFLAGS = \
    2527-version-info 43:0:3 \
    2628-export-symbols-regex '^glp_*' \
    2729${NOUNDEFINED}
    2830
    29 libglpk_la_SOURCES = \
     31libcoinglpk_la_SOURCES = \
    3032amd/amd_1.c \
    3133amd/amd_2.c \
    3234amd/amd_aat.c \
Note: See TracBrowser for help on using the repository browser.