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
7fbc8e3c
Commit
7fbc8e3c
authored
22 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Convert - to _ in variable names.
parent
dc107f80
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
+22
-22
22 additions, 22 deletions
m4/check-package.m4
with
22 additions
and
22 deletions
m4/check-package.m4
+
22
−
22
View file @
7fbc8e3c
...
@@ -27,10 +27,10 @@ AC_ARG_WITH($1-lib,
...
@@ -27,10 +27,10 @@ AC_ARG_WITH($1-lib,
;;
;;
no) AC_MSG_ERROR("option \"--with-$1-lib\" requires an argument")
no) AC_MSG_ERROR("option \"--with-$1-lib\" requires an argument")
;;
;;
*)
$1
_LIB_PATH=$withval
*)
m4_bpatsubst([$1],-,_)
_LIB_PATH=$withval
;;
;;
esac],
esac],
$1
_LIB_PATH=$DEFAULT_LIBDIR)
m4_bpatsubst([$1],-,_)
_LIB_PATH=$DEFAULT_LIBDIR)
dnl
dnl
dnl now for the header file
dnl now for the header file
dnl
dnl
...
@@ -47,53 +47,53 @@ AC_ARG_WITH($1-headers,
...
@@ -47,53 +47,53 @@ AC_ARG_WITH($1-headers,
;;
;;
no) AC_MSG_ERROR("option \"--with-$1-headers\" requires an argument")
no) AC_MSG_ERROR("option \"--with-$1-headers\" requires an argument")
;;
;;
*)
$1
_INCLUDE_PATH=$withval
*)
m4_bpatsubst([$1],-,_)
_INCLUDE_PATH=$withval
;;
;;
esac],
esac],
$1
_INCLUDE_PATH=$DEFAULT_INCDIR)
m4_bpatsubst([$1],-,_)
_INCLUDE_PATH=$DEFAULT_INCDIR)
dnl
dnl
dnl now check if the library and header files exist
dnl now check if the library and header files exist
dnl
dnl
if test "$7" = "optional" ; then
if test "$7" = "optional" ; then
AC_CHECK_LIB($2, main,
AC_CHECK_LIB($2, main,
[
$1_LIB="-L$$1
_LIB_PATH -l$2"],
[
m4_bpatsubst([$1],-,_)_LIB="-L${m4_bpatsubst([$1],-,_)
_LIB_PATH
}
-l$2"],
[
$1
_LIB=""
[
m4_bpatsubst([$1],-,_)
_LIB=""
$1
_LIB_PATH=""
m4_bpatsubst([$1],-,_)
_LIB_PATH=""
$1
_INCLUDE_PATH=""],
m4_bpatsubst([$1],-,_)
_INCLUDE_PATH=""],
-L$
$1
_LIB_PATH $4)
-L$
{m4_bpatsubst([$1],-,_)
_LIB_PATH
}
$4)
else
else
AC_CHECK_LIB($2, main,
AC_CHECK_LIB($2, main,
[
$1_LIB="-L$$1
_LIB_PATH -l$2 $4"],
[
m4_bpatsubst([$1],-,_)_LIB="-L${m4_bpatsubst([$1],-,_)
_LIB_PATH
}
-l$2 $4"],
[AC_MSG_ERROR([Library "lib$2" was not found])],
[AC_MSG_ERROR([Library "lib$2" was not found])],
-L$
$1
_LIB_PATH $4)
-L$
m4_bpatsubst([$1],-,_)
_LIB_PATH $4)
fi
fi
if test "x$
$1
_LIB" = "x" ; then
if test "x$
{m4_bpatsubst([$1],-,_)
_LIB
}
" = "x" ; then
:
:
else
else
dnl
dnl
dnl check for the header file
dnl check for the header file
dnl
dnl
ac_
$1
_save_CPPFLAGS="$CPPFLAGS"
[
ac_
]m4_bpatsubst([$1],-,_)
_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-I$
$1
_INCLUDE_PATH $CPPFLAGS"
CPPFLAGS="-I$
{m4_bpatsubst([$1],-,_)
_INCLUDE_PATH
}
$CPPFLAGS"
if test "$7" = "optional" ; then
if test "$7" = "optional" ; then
AC_CHECK_HEADERS($5,, [
$1
_LIB=""
AC_CHECK_HEADERS($5,, [
m4_bpatsubst([$1],-,_)
_LIB=""
$1
_LIB_PATH=""
m4_bpatsubst([$1],-,_)
_LIB_PATH=""
$1
_INCLUDE_PATH=""])
m4_bpatsubst([$1],-,_)
_INCLUDE_PATH=""])
else
else
AC_CHECK_HEADERS($5,, AC_MSG_ERROR([Header file "$5" was not found]))
AC_CHECK_HEADERS($5,, AC_MSG_ERROR([Header file "$5" was not found]))
fi
fi
CPPCLAGS="$ac_
$1
_save_CPPFLAGS"
CPPCLAGS="$
{[
ac_
]m4_bpatsubst([$1],-,_)
_save_CPPFLAGS
}
"
dnl
dnl
dnl define makefile substitutions and config.h macros
dnl define makefile substitutions and config.h macros
dnl
dnl
if test "x$
$1
_LIB" = "x" ; then
if test "x$
{m4_bpatsubst([$1],-,_)
_LIB
}
" = "x" ; then
:
:
else
else
AC_DEFINE(m4_bpatsubst(m4_toupper([HAVE_LIB$2]),-,_),
AC_DEFINE(m4_bpatsubst(m4_toupper([HAVE_LIB$2]),-,_),
1, Define to 1 if you have lib$2)
1, Define to 1 if you have lib$2)
fi
fi
fi
fi
AC_SUBST(
$1
_INCLUDE_PATH)
AC_SUBST(
m4_bpatsubst([$1],-,_)
_INCLUDE_PATH)
AC_SUBST(
$1
_LIB_PATH)
AC_SUBST(
m4_bpatsubst([$1],-,_)
_LIB_PATH)
AC_SUBST(
$1
_LIB)
AC_SUBST(
m4_bpatsubst([$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