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
8fbf2a34
Commit
8fbf2a34
authored
22 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Use $1_LIB_PATH and $1_INCLUDE_PATH to be a little bit more consistent
with stock ALBERT.
parent
9fe4c751
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/check-package.m4
+14
-14
14 additions, 14 deletions
m4/check-package.m4
with
14 additions
and
14 deletions
m4/check-package.m4
+
14
−
14
View file @
8fbf2a34
...
...
@@ -27,10 +27,10 @@ AC_ARG_WITH($1-lib,
;;
no) AC_MSG_ERROR("option \"--with-$1-lib\" requires an argument")
;;
*) $1_
DIR
=$withval
*) $1_
LIB_PATH
=$withval
;;
esac],
$1_
DIR
=$DEFAULT_LIBDIR)
$1_
LIB_PATH
=$DEFAULT_LIBDIR)
dnl
dnl now for the header file
dnl
...
...
@@ -50,22 +50,22 @@ AC_ARG_WITH($1-headers,
*) $1_INCS=$withval
;;
esac],
$1_INCLUDE
S
=$DEFAULT_INCDIR)
$1_INCLUDE
_PATH
=$DEFAULT_INCDIR)
dnl
dnl now check if the library and header files exist
dnl
if test "$7" = "optional" ; then
AC_CHECK_LIB($2, main,
[$1_LIB="-L$$1_
DIR
-l$2"],
[$1_LIB="-L$$1_
LIB_PATH
-l$2"],
[$1_LIB=""
$1_
DIR
=""
$1_INCLUDE
S
=""],
-L$$1_
DIR
$4)
$1_
LIB_PATH
=""
$1_INCLUDE
_PATH
=""],
-L$$1_
LIB_PATH
$4)
else
AC_CHECK_LIB($2, main,
[$1_LIB="-L$$1_
DIR
-l$2 $4"],
[$1_LIB="-L$$1_
LIB_PATH
-l$2 $4"],
[AC_MSG_ERROR([Library "lib$2" was not found])],
-L$$1_
DIR
$4)
-L$$1_
LIB_PATH
$4)
fi
if test "x$$1_LIB" = "x" ; then
:
...
...
@@ -74,11 +74,11 @@ else
dnl check for the header file
dnl
ac_$1_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-I$$1_INCLUDE
S
$CPPFLAGS"
CPPFLAGS="-I$$1_INCLUDE
_PATH
$CPPFLAGS"
if test "$7" = "optional" ; then
AC_CHECK_HEADERS($5,, [$1_LIB=""
$1_
DIR
=""
$1_INCLUDE
S
=""])
$1_
LIB_PATH
=""
$1_INCLUDE
_PATH
=""])
else
AC_CHECK_HEADERS($5,, AC_MSG_ERROR([Header file "$5" was not found]))
fi
...
...
@@ -92,7 +92,7 @@ else
AC_DEFINE(m4_toupper([HAVE_LIB$2]), 1, Define to 1 if you have lib$2)
fi
fi
AC_SUBST($1_INCLUDE
S
)
AC_SUBST($1_
DIR
)
AC_SUBST($1_INCLUDE
_PATH
)
AC_SUBST($1_
LIB_PATH
)
AC_SUBST($1_LIB)
])
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