mirror of
https://github.com/dashpay/dash.git
synced 2024-12-23 19:12:47 +01:00
a26bad09b6
0c4e6ce
Add MIT license to build-aux/m4 scripts (Luke Dashjr)3f8a5d8
Trivial: build-aux/m4/l_atomic: Fix typo (Luke Dashjr)3b4b6dc
Add MIT license to autogen.sh and share/genbuild.sh (Luke Dashjr)f4dffdd
Add MIT license to Makefiles (Luke Dashjr)
19 lines
800 B
Plaintext
19 lines
800 B
Plaintext
dnl Copyright (c) 2013-2014 The Bitcoin Core developers
|
|
dnl Distributed under the MIT software license, see the accompanying
|
|
dnl file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
dnl BITCOIN_SUBDIR_TO_INCLUDE([CPPFLAGS-VARIABLE-NAME],[SUBDIRECTORY-NAME],[HEADER-FILE])
|
|
dnl SUBDIRECTORY-NAME must end with a path separator
|
|
AC_DEFUN([BITCOIN_SUBDIR_TO_INCLUDE],[
|
|
if test "x$2" = "x"; then
|
|
AC_MSG_RESULT([default])
|
|
else
|
|
echo "#include <$2$3.h>" >conftest.cpp
|
|
newinclpath=`${CXXCPP} ${CPPFLAGS} -M conftest.cpp 2>/dev/null | [ tr -d '\\n\\r\\\\' | sed -e 's/^.*[[:space:]:]\(\/[^[:space:]]*\)]$3[\.h[[:space:]].*$/\1/' -e t -e d`]
|
|
AC_MSG_RESULT([${newinclpath}])
|
|
if test "x${newinclpath}" != "x"; then
|
|
eval "$1=\"\$$1\"' -I${newinclpath}'"
|
|
fi
|
|
fi
|
|
])
|