Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
ians-nmh-siebert
alberta
alberta3
Commits
72d56cfe
Commit
72d56cfe
authored
22 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Check for albert.h
parent
536464bb
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
m4/albert-check.m4
+22
-1
22 additions, 1 deletion
m4/albert-check.m4
with
22 additions
and
1 deletion
m4/albert-check.m4
+
22
−
1
View file @
72d56cfe
...
@@ -16,7 +16,8 @@ dnl Check for ALBERT libraries at given dimensions, taking ELINDEX and DEBUG
...
@@ -16,7 +16,8 @@ dnl Check for ALBERT libraries at given dimensions, taking ELINDEX and DEBUG
dnl into account. $1 is DIM, $2 ist DIM_OF_WORLD
dnl into account. $1 is DIM, $2 ist DIM_OF_WORLD
dnl
dnl
AC_DEFUN([ALBERT_CHECK],
AC_DEFUN([ALBERT_CHECK],
[AC_REQUIRE([ALBERT_OPTIONS])
[AC_REQUIRE([ALBERT_TYPE_SIZES])
AC_REQUIRE([ALBERT_OPTIONS])
AC_REQUIRE([AC_SET_PREFIX])
AC_REQUIRE([AC_SET_PREFIX])
dnl
dnl
dnl library location
dnl library location
...
@@ -124,4 +125,24 @@ if test "x$ALBERT_LIBS_$1$2" = "x" ; then
...
@@ -124,4 +125,24 @@ if test "x$ALBERT_LIBS_$1$2" = "x" ; then
fi
fi
fi
fi
fi
fi
dnl
dnl search for albert.h header
dnl
AC_CACHE_CHECK(
[whether albert.h exist and works with DIM=$1 and DIM_OF_WORLD=$2],
[ac_cv_header_albert$1$2_h],
[ac_albert_save_CPPFLAGS="$CPPFLAGS"
unset ac_cv_header_albert_h
CPPFLAGS="-DDIM=$1 -DDIM_OF_WORLD=$2 -DEL_INDEX=${ELINDEX:-0} -I$ALBERT_INCLUDE_PATH $CPPFLAGS"
AC_CHECK_HEADERS(albert.h,
[unset ac_cv_header_albert_h
ac_cv_header_albert$1$2_h=yes],
[ac_cv_header_albert$1$2_h=no
AC_MSG_ERROR([Header file "albert.h" not found])])
CPPFLAGS="$ac_albert_save_CPPFLAGS"
])
if test $ac_cv_header_albert$1$2_h = yes; then
AC_DEFINE([HAVE_ALBERT$1$2_H], 1,
[Define if "albert.h" works with DIM=$1 and DIM_OF_WORLD=$2.])
fi
])
])
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