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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Timo Koch
dune-common
Commits
ecf7645b
Commit
ecf7645b
authored
20 years ago
by
Thimo Neubauer
Browse files
Options
Downloads
Patches
Plain Diff
check for library as it is needed for the standard debug streams
[[Imported from SVN: r833]]
parent
5cec2258
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/dune.m4
+41
-44
41 additions, 44 deletions
m4/dune.m4
with
41 additions
and
44 deletions
m4/dune.m4
+
41
−
44
View file @
ecf7645b
#! /bin/sh
# $Id$
# checks for dune-headers and everything they need
...
...
@@ -55,55 +56,51 @@ AC_DEFUN([DUNE_PATH_DUNE],[
[
HAVE_DUNE
=
0]
)
# # did we find the headers?
# if test x$HAVE_DUNE = x1 ; then
# # check for library
# #
# # for the devel-mode, we're searching for a .la-file in the
# # with-dune-directory, otherwise we'll really test for a lib
# # (installed in a proper directory!)
# if test x"$enable_localdune" != xyes ; then
# ## normal test
# # !!! should be pkg-config later (which would save the special
# # header-check above)
# # !!! insert symbol defined in the libdune
# AC_CHECK_LIB(dune, ,[HAVE_DUNE=1],[HAVE_DUNE=0])
# else
# ## special test for a local installation
# ac_save_LDFLAGS="$LDFLAGS"
# if test x$DUNEROOT != x ; then
# # have a look into the dune-dir
# LDFLAGS="$LDFLAGS -L$DUNEROOT/dune/lib"
# # only check for a .la-file
# if test -s $DUNEROOT/dune/lib/libdune.la ; then
# DUNE_LDFLAGS="-L$DUNEROOT/dune/lib"
# echo found libdune.la, setting LDFLAGS to $DUNE_LDFLAGS
# # provide arguments like normal lib-check
# LIBS="-ldune"
# HAVE_DUNE=1
# else
# AC_MSG_ERROR([localdune is enabled but libdune.la was not found. Please compile the library or set a correct --with-dune])
# fi
# else
# AC_MSG_ERROR([--enable-localdune needs a --with-dune-parameter!])
# fi
# # reset variable
# LDFLAGS="$ac_save_LDFLAGS"
# fi
# fi
# did we find the headers?
if
test
x
$HAVE_DUNE
=
x1
;
then
ac_save_LDFLAGS
=
"
$LDFLAGS
"
ac_save_LIBS
=
"
$LIBS
"
## special test for a local installation
if
test
x
$DUNEROOT
!=
x
;
then
# have a look into the dune-dir
LDFLAGS
=
"
$LDFLAGS
-L
$DUNEROOT
/dune/lib"
# only check for a .la-file
if
test
-s
$DUNEROOT
/dune/lib/libdune.la
;
then
DUNE_LDFLAGS
=
"-L
$DUNEROOT
/dune/lib"
echo
found libdune.la, setting LDFLAGS to
$DUNE_LDFLAGS
# provide arguments like normal lib-check
DUNE_LIBS
=
"-ldune"
HAVE_DUNE
=
1
fi
fi
## normal test for a systemwide install
if
test
x
$HAVE_DUNE
=
x0
;
then
# !!! should be pkg-config later (which would save the special
# header-check as well)
# Beware! Untested!!!
LIBS
=
"-ldune"
AC_TRY_LINK
(
,[Dune::derr.active
()
;
]
,
[
HAVE_DUNE
=
1
DUNE_LIBS
=
"
$LIBS
"
]
,
[
HAVE_DUNE
=
0]
)
fi
# reset variables
LDFLAGS
=
"
$ac_save_LDFLAGS
"
LIBS
=
"
$ac_save_LIBS
"
fi
# did we succeed?
if
test
x
$HAVE_DUNE
=
x1
;
then
AC_SUBST
(
DUNE_CPPFLAGS,
$DUNE_CPPFLAGS
)
AC_SUBST
(
DUNE_LDFLAGS,
$DUNE_LDFLAGS
)
AC_SUBST(DUNE_LIBS, $LIBS)
AC_SUBST
(
DUNE_LIBS,
$
DUNE_
LIBS
)
AC_DEFINE
(
HAVE_DUNE, 1,
[
Define to 1
if
dune was found]
)
if
test
x
"
$enable_dunedevel
"
=
xyes
;
then
...
...
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