summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorClaus Stovgaard <claus@frosteyes.dk>2014-10-14 15:05:45 (GMT)
committerClaus Stovgaard <claus@frosteyes.dk>2014-10-14 15:10:00 (GMT)
commit61e07f8ea2d0d2a2f001b1f657d3d5bbe44e7690 (patch)
tree207df779d7e3980de9e897bce6b35339bf31132f /configure
parent258259fff03a8cb0347b0ddc9f04676ab6833572 (diff)
downloadDoxygen-61e07f8ea2d0d2a2f001b1f657d3d5bbe44e7690.zip
Doxygen-61e07f8ea2d0d2a2f001b1f657d3d5bbe44e7690.tar.gz
Doxygen-61e07f8ea2d0d2a2f001b1f657d3d5bbe44e7690.tar.bz2
Updated configuration script and libdoxygen.pro.in to use llvm-config
This is needed on platforms like ubuntu 14.04 where several version of clang can be installed, and the version is included in the location. The best way is to use the llvm-config if available
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 5c01af0..7514680 100755
--- a/configure
+++ b/configure
@@ -554,8 +554,13 @@ fi
if test "$f_libclang" = YES; then
printf " Checking for libclang ... "
- libclang_hdr_dir="/usr/include /usr/local/include /opt/local/include"
- libclang_lib_dir="/usr/lib /usr/local/lib /opt/local/lib /usr/lib64/llvm /usr/lib/llvm"
+ if llvm-config --version > /dev/null 2>&1; then
+ libclang_hdr_dir=$(llvm-config --includedir)
+ libclang_lib_dir=$(llvm-config --libdir)
+ else
+ libclang_hdr_dir="/usr/include /usr/local/include /opt/local/include"
+ libclang_lib_dir="/usr/lib /usr/local/lib /opt/local/lib /usr/lib64/llvm /usr/lib/llvm"
+ fi
if test "$f_libclangstatic" = NO; then
libclang_lib_name="libclang.so libclang.dylib libclang.a libclang.dll.a"
else
@@ -952,7 +957,7 @@ EOF
#if test "$f_thread" = YES; then
# realopts="$realopts thread"
#fi
- cat $SRC .tmakeconfig | sed -e "s/\$extraopts/$realopts/g" -e "s;%%SQLITE3_INC%%;$sqlite3_hdr_dir;g" -e "s;%%SQLITE3_LIBS%%;$sqlite3_link;g" -e "s;%%LIBCLANG_LIBS%%;$libclang_link;g" >> $DST
+ cat $SRC .tmakeconfig | sed -e "s/\$extraopts/$realopts/g" -e "s;%%SQLITE3_INC%%;$sqlite3_hdr_dir;g" -e "s;%%SQLITE3_LIBS%%;$sqlite3_link;g" -e "s;%%LIBCLANG_INC%%;$libclang_hdr_dir;g" -e "s;%%LIBCLANG_LIBS%%;$libclang_link;g" >> $DST
echo " Created $DST from $SRC..."
done