Changeset 3667


Ignore:
Timestamp:
Sep 6, 2016 11:30:26 AM (3 years ago)
Author:
stefan
Message:

make sure CFLAGS defaults are set before C compiler is checked (seems to be a required check of libtool or so)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3665 r3667  
    378378###########################################################################
    379379
    380 # This macro does everything that is required in the early part in the
    381 # configure script, such as defining a few variables.
    382 # The first parameter is the project name.
    383 # The second (optional) is the libtool library version (important for releases,
    384 # less so for stable or trunk).
    385 
    386 AC_DEFUN([AC_COIN_INITIALIZE],
     380AC_DEFUN([AC_COIN_COMPFLAGS_DEFAULTS],
    387381[
    388 # required autoconf version
    389 AC_PREREQ(2.69)
    390 
    391 # Set the project's version numbers
    392 AC_COIN_PROJECTVERSION($1, $2)
    393 
    394 # A useful makefile conditional that is always false
    395 AM_CONDITIONAL(ALWAYS_FALSE, false)
    396 
    397 # Where should everything be installed by default?  Here, we want it
    398 # to be installed directly in 'bin', 'lib', 'include' subdirectories
    399 # of the directory where configure is run.  The default would be
    400 # /usr/local.     
    401 AC_PREFIX_DEFAULT([`pwd`])
    402 
    403 # Get the system type
    404 AC_CANONICAL_BUILD
    405 
    406 # initialize automake
    407 # - don't define PACKAGE or VERSION
    408 # - disable dist target
    409 # - enable all automake warnings
    410 AM_INIT_AUTOMAKE([no-define no-dist -Wall])
    411 
    412 # make silent build rules the default (https://www.gnu.org/software/automake/manual/html_node/Automake-Silent-Rules.html)
    413 AM_SILENT_RULES([yes])
    414 
    415 # disable automatic rebuild of configure/Makefile
    416 AM_MAINTAINER_MODE
    417 
    418 # setup libtool parameters (https://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html)
    419 LT_INIT([disable-static])
    420 
    421 # create libtool
    422 AC_PROG_LIBTOOL
    423 
    424382# change default compiler flags (should we have an enable-debug again?)
    425383# - some compilers doesn't understand -g
     
    429387: ${CFLAGS:="-DNDEBUG"}
    430388: ${CXXFLAGS:="-DNDEBUG"}
     389])
     390
     391# This macro does everything that is required in the early part in the
     392# configure script, such as defining a few variables.
     393# The first parameter is the project name.
     394# The second (optional) is the libtool library version (important for releases,
     395# less so for stable or trunk).
     396
     397AC_DEFUN([AC_COIN_INITIALIZE],
     398[
     399AC_REQUIRE([AC_COIN_COMPFLAGS_DEFAULTS])
     400
     401# required autoconf version
     402AC_PREREQ(2.69)
     403
     404# Set the project's version numbers
     405AC_COIN_PROJECTVERSION($1, $2)
     406
     407# A useful makefile conditional that is always false
     408AM_CONDITIONAL(ALWAYS_FALSE, false)
     409
     410# Where should everything be installed by default?  Here, we want it
     411# to be installed directly in 'bin', 'lib', 'include' subdirectories
     412# of the directory where configure is run.  The default would be
     413# /usr/local.     
     414AC_PREFIX_DEFAULT([`pwd`])
     415
     416# Get the system type
     417AC_CANONICAL_BUILD
     418
     419# initialize automake
     420# - don't define PACKAGE or VERSION
     421# - disable dist target
     422# - enable all automake warnings
     423AM_INIT_AUTOMAKE([no-define no-dist -Wall])
     424
     425# make silent build rules the default (https://www.gnu.org/software/automake/manual/html_node/Automake-Silent-Rules.html)
     426AM_SILENT_RULES([yes])
     427
     428# disable automatic rebuild of configure/Makefile
     429AM_MAINTAINER_MODE
     430
     431# setup libtool parameters (https://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html)
     432LT_INIT([disable-static])
     433
     434# create libtool
     435AC_PROG_LIBTOOL
    431436])
    432437
Note: See TracChangeset for help on using the changeset viewer.