Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
3f0e725c
Commit
3f0e725c
authored
21 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o add check for libelanctrl, export HAVE_ELAN=1 if we either of
libelanctrl or libelan3
parent
7dbf1ccd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+25
-5
25 additions, 5 deletions
configure.ac
with
25 additions
and
5 deletions
configure.ac
+
25
−
5
View file @
3f0e725c
...
@@ -175,20 +175,40 @@ AM_CONDITIONAL(WITH_ELAN, test "x$with_elan" = "xyes")
...
@@ -175,20 +175,40 @@ AM_CONDITIONAL(WITH_ELAN, test "x$with_elan" = "xyes")
HAVE_ELAN=0
HAVE_ELAN=0
if test "$with_elan" = "yes"; then
if test "$with_elan" = "yes"; then
savedLIBS="$LIBS"
savedLIBS="$LIBS"
AC_CHECK_LIB(elan3, elan3_create,
AC_CHECK_LIB([elanctrl], [elanctrl_open],
[],
[ have_elanctrl=yes
[AC_MSG_ERROR([unable to find the Elan3 library needed for Elan support.])],
ELAN_LIBS="-lelanctrl"
AC_DEFINE(HAVE_LIBELANCTRL, 1,
[define if you have libelanctrl.])
],
[ have_elanctrl=no
]
)
)
AC_CHECK_LIB([elan3], [elan3_create],
[ have_elan3=yes
ELAN_LIBS="-lelan3"
AC_DEFINE(HAVE_LIBELAN3, 1,
[define if you have libelan3.])
],
[ have_elan3=no
]
)
if test "$have_elanctrl" = "no" -a "$have_elan3" = "no"; then
AC_MSG_ERROR([Unable to find libelan3 or libelanctrl for Elan support!])
fi
AC_CHECK_LIB(rmscall, rms_prgcreate,
AC_CHECK_LIB(rmscall, rms_prgcreate,
[],
[],
[AC_MSG_ERROR([unable to find the RMS library needed for Elan support])],
[AC_MSG_ERROR([unable to find the RMS library needed for Elan support])],
)
)
HAVE_ELAN=1
HAVE_ELAN=1
ELAN_LIBS="-lelan3 -lrmscall"
AC_DEFINE(HAVE_ELAN, 1, [Define to enable Elan support.])
ELAN_LIBS="$ELAN_LIBS -lrmscall"
LIBS="$savedLIBS"
LIBS="$savedLIBS"
fi
fi
AC_DEFINE_UNQUOTED(HAVE_ELAN, "$HAVE_ELAN", [Define to enable Elan support.])
AC_SUBST(HAVE_ELAN)
AC_SUBST(HAVE_ELAN)
AC_SUBST(ELAN_LIBS)
AC_SUBST(ELAN_LIBS)
...
...
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