Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
ea222b15
Commit
ea222b15
authored
12 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
implemented FS#1230.
[[Imported from SVN: r7429]]
parent
3fdea52d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/dune.m4
+20
-13
20 additions, 13 deletions
m4/dune.m4
m4/dune_all.m4
+3
-3
3 additions, 3 deletions
m4/dune_all.m4
with
23 additions
and
16 deletions
m4/dune.m4
+
20
−
13
View file @
ea222b15
...
...
@@ -113,11 +113,13 @@ AS_VAR_POPDEF([_dune_aap_TAG])dnl
AC_DEFUN([DUNE_ADD_MODULE_DEPS],
[# Add module specific flags and libs
AS_VAR_PUSHDEF([_dune_amd_CPPFLAGS], [AS_TR_CPP([$1])_DEPS_CPPFLAGS])dnl
DUNE_VAR_APPEND([_dune_amd_CPPFLAGS], [" $3"])
DUNE_VAR_COPY([_dune_amd_tmp], [_dune_amd_CPPFLAGS])
AS_VAR_SET([_dune_amd_CPPFLAGS], ["$3 "$_dune_amd_tmp])
AS_VAR_POPDEF([_dune_amd_CPPFLAGS])dnl
AS_VAR_PUSHDEF([_dune_amd_LDFLAGS], [AS_TR_CPP([$1])_DEPS_LDFLAGS])dnl
DUNE_VAR_APPEND([_dune_amd_LDFLAGS], [" $4"])
DUNE_VAR_COPY([_dune_amd_tmp], [_dune_amd_LDFLAGS])
AS_VAR_SET([_dune_amd_LDFLAGS], ["$4 "$_dune_amd_tmp])
AS_VAR_POPDEF([_dune_amd_LDFLAGS])dnl
AS_VAR_PUSHDEF([_dune_amd_LIBS], [AS_TR_CPP([$1])_DEPS_LIBS])dnl
...
...
@@ -126,14 +128,13 @@ AS_VAR_SET([_dune_amd_LIBS], ["$5 "$_dune_amd_tmp])
AS_VAR_POPDEF([_dune_amd_LIBS])dnl
# add flags and libs to the ALL_PKG_* family
DUNE_ADD_ALL_PKG([$2], [
$3], [$4], [$5
])
DUNE_ADD_ALL_PKG([$2], [
\${_DUNE_MODULE[]_CPPFLAGS}], [\${_DUNE_MODULE[]_LDFLAGS}], [\${_DUNE_MODULE[]_LIBS}
])
# add flags and libs to the DUNE_* family
AS_VAR_PUSHDEF([_dune_amd_TAG], [_dune_amd_tag_$2])dnl
AS_VAR_SET_IF([_dune_amd_TAG], ,
[DUNE_VAR_APPEND([DUNE_CPPFLAGS], [" $3"])
DUNE_VAR_APPEND([DUNE_LDFLAGS], [" $4"])
DUNE_LIBS="$5 $DUNE_LIBS"
# add flags to the deprecated DUNE_PKG_* family as well
DUNE_VAR_APPEND([DUNE_PKG_CPPFLAGS], [" $3"])
...
...
@@ -324,7 +325,7 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
AC_MSG_ERROR([pkg-config is required for using installed modules])
])
AS_IF(AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]),[
_dune_cm_CPPFLAGS="`$PKG_CONFIG --cflags _dune_name`" 2>/dev/null
_dune_cm_CPPFLAGS="`$PKG_CONFIG --cflags _dune_name`
-I./
" 2>/dev/null
_DUNE_MODULE[]_ROOT="`$PKG_CONFIG --variable=prefix _dune_name`" 2>/dev/null
_DUNE_MODULE[]_VERSION="`$PKG_CONFIG --modversion _dune_name`" 2>/dev/null
_DUNE_MODULE[]_LIBDIR=`$PKG_CONFIG --variable=libdir _dune_name 2>/dev/null`
...
...
@@ -373,7 +374,7 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
])
])
CPPFLAGS="$ac_save_CPPFLAGS $DUNE_CPPFLAGS $_dune_cm_CPPFLAGS"
CPPFLAGS="$ac_save_CPPFLAGS $DUNE_CPPFLAGS
_TMP $DUNE_PKG_CPPFLAGS
$_dune_cm_CPPFLAGS"
##
## check for an arbitrary header
##
...
...
@@ -404,14 +405,14 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
AC_CACHE_CHECK([for lib[]_dune_lib], dune_cv_lib[]_dune_lib, [
# Use $CXX $DUNE_LDFLAGS as link command, as the latter might
# contain the -static option to force static linkage
ac_cxx_ld=`echo $ac_save_CXX | sed -e "s@$CXX@$CXX $DUNE_LDFLAGS@"`
ac_cxx_ld=`echo $ac_save_CXX | sed -e "s@$CXX@$CXX $DUNE_LDFLAGS
_TMP
@"`
# define LTCXXLINK like it will be defined in the Makefile
CXX="./libtool --tag=CXX --mode=link $ac_cxx_ld "
# use module LDFLAGS
LDFLAGS="$ac_save_LDFLAGS $DUNE_LDFLAGS $DUNE_PKG_LDFLAGS $_dune_cm_LDFLAGS"
LIBS="$_dune_cm_LIBS $DUNE_LIBS $LIBS"
LDFLAGS="$ac_save_LDFLAGS $DUNE_LDFLAGS
_TMP
$DUNE_PKG_LDFLAGS $_dune_cm_LDFLAGS"
LIBS="$_dune_cm_LIBS $DUNE_LIBS
_TMP
$LIBS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
...
...
@@ -444,8 +445,8 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
[$_dune_cm_CPPFLAGS], [$_dune_cm_LDFLAGS], [$_dune_cm_LIBS])
# set variables for our modules
AC_SUBST(_DUNE_MODULE[]_CPPFLAGS, "$_
DUNE_MODULE[]
_CPPFLAGS")
AC_SUBST(_DUNE_MODULE[]_LDFLAGS, "$_
DUNE_MODULE[]
_LDFLAGS")
AC_SUBST(_DUNE_MODULE[]_CPPFLAGS, "$_
dune_cm
_CPPFLAGS")
AC_SUBST(_DUNE_MODULE[]_LDFLAGS, "$_
dune_cm
_LDFLAGS")
AC_SUBST(_DUNE_MODULE[]_LIBS, "$_dune_cm_LIBS")
AC_SUBST(_DUNE_MODULE[]_ROOT, "$_DUNE_MODULE[]_ROOT")
ifelse(m4_defn([_dune_symbol]),,
...
...
@@ -459,8 +460,14 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
# set DUNE_* variables
# This should actually be unneccesary, but I'm keeping it in here for now
# for backward compatibility
DUNE_LDFLAGS="$DUNE_LDFLAGS $_DUNE_MODULE[]_LDFLAGS"
DUNE_LIBS="$_DUNE_MODULE[]_LIBS $DUNE_LIBS"
DUNE_CPPFLAGS="$DUNE_CPPFLAGS \${_DUNE_MODULE[]_CPPFLAGS}"
DUNE_LDFLAGS="$DUNE_LDFLAGS \${_DUNE_MODULE[]_LDFLAGS}"
DUNE_LIBS="\${_DUNE_MODULE[]_LIBS} $DUNE_LIBS"
# the TMP version is used during the checks
DUNE_CPPFLAGS_TMP="$DUNE_CPPFLAGS_TMP $_DUNE_MODULE[]_CPPFLAGS"
DUNE_LDFLAGS_TMP="$DUNE_LDFLAGS_TMP $_DUNE_MODULE[]_LDFLAGS"
DUNE_LIBS_TMP="$_DUNE_MODULE[]_LIBS $DUNE_LIBS_TMP"
# add to global list
# only add my flags other flags are added by other packages
...
...
This diff is collapsed.
Click to expand it.
m4/dune_all.m4
+
3
−
3
View file @
ea222b15
...
...
@@ -32,9 +32,9 @@ dnl do not use LT_INIT since we want to be compatible with libtool 1.5
AC_REQUIRE([DUNE_CHECK_MOD_DEPENDENCIES])
# convenience-variables if every found package should be used
AC_SUBST([ALL_PKG_LIBS], "
$DUNE_PKG_LIBS
$ALL_PKG_LIBS $LIBS")
AC_SUBST([ALL_PKG_LDFLAGS], "$LDFLAGS
$DUNE_PKG_LDFLAGS
$ALL_PKG_LDFLAGS")
AC_SUBST([ALL_PKG_CPPFLAGS], "$CPPFLAGS
$DUNE_PKG_CPPFLAGS
$ALL_PKG_CPPFLAGS")
AC_SUBST([ALL_PKG_LIBS], "$ALL_PKG_LIBS $LIBS")
AC_SUBST([ALL_PKG_LDFLAGS], "$LDFLAGS $ALL_PKG_LDFLAGS")
AC_SUBST([ALL_PKG_CPPFLAGS], "$CPPFLAGS $ALL_PKG_CPPFLAGS")
# convenience variables for all basic dune packages without extras
AC_SUBST([DUNE_CPPFLAGS])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment