diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2011-04-29 01:36:00 +0200 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2011-04-29 01:36:00 +0200 |
commit | 1867180c5e2263baf319514b5b765b8eb4049c08 (patch) | |
tree | 3a39032c010d664a7ad6df5a9aec7fa9449a1e2a | |
parent | [master] use botan-config (diff) | |
download | kea-1867180c5e2263baf319514b5b765b8eb4049c08.tar.xz kea-1867180c5e2263baf319514b5b765b8eb4049c08.zip |
[master] [master] added workaround for freebsd about ldflags and cppflags for botan:
use -L`botan-config --prefix`/lib and -I`botan-config --prefix`/include.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1e014ad55c..48622a4607 100644 --- a/configure.ac +++ b/configure.ac @@ -395,7 +395,15 @@ fi if test -x "${BOTAN_CONFIG}" ; then BOTAN_LDFLAGS=`${BOTAN_CONFIG} --libs` + # We expect botan-config --libs to contain -L<path_to_libbotan>, but + # this is not always the case. As a heuristics workaround we add + # -L`botan-config --prefix/lib` in this case. Same for BOTAN_INCLUDES + # (but using include instead of lib) below. + echo ${BOTAN_LDFLAGS} | grep -- -L > /dev/null || \ + BOTAN_LDFLAGS="-L`${BOTAN_CONFIG} --prefix`/lib ${BOTAN_LDFLAGS}" BOTAN_INCLUDES=`${BOTAN_CONFIG} --cflags` + echo ${BOTAN_INCLUDES} | grep -- -I > /dev/null || \ + BOTAN_INCLUDES="-I`${BOTAN_CONFIG} --prefix`/include ${BOTAN_INCLUDES}" # See python_rpath for some info on why we do this if test $rpath_available = yes; then BOTAN_RPATH= |