mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
build-sys: add --with-uthash=DIR ./configure option
Allow program builder to specify where uthash.h is. Proposed-by: Ryan Steinmetz <zi@freebsd.org> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
1c40d8ac1e
commit
3c9226752b
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
|
@ -40,6 +40,19 @@ AC_CHECK_HEADERS([\
|
||||||
unistd.h \
|
unistd.h \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_ARG_WITH(uthash,
|
||||||
|
AC_HELP_STRING([--with-uthash=DIR], [Use uthash from [DIR]/uthash.h)]),
|
||||||
|
[ case "$with_uthash" in
|
||||||
|
yes)
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
AC_MSG_ERROR([the uthash.h is required])
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$with_uthash"
|
||||||
|
;;
|
||||||
|
esac]
|
||||||
|
)
|
||||||
AC_CHECK_HEADER(uthash.h, [], [AC_MSG_ERROR([Unable to find uthash.h])])
|
AC_CHECK_HEADER(uthash.h, [], [AC_MSG_ERROR([Unable to find uthash.h])])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue