mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
configure script doesn't check for clang headers #287
Added a configure check for clang/Basic/LLVM.h. Also removed -lz from the link libraries. I don't think we need it.
This commit is contained in:
parent
cddc8a585d
commit
d0349772d5
@ -237,6 +237,8 @@ dnl process the optional --with-llvm command line arguments
|
||||
AX_LLVM_HOME([])
|
||||
LLVM_LIB_DIR=`$LLVM_CONFIG --libdir`
|
||||
LLVM_BIN_DIR=`$LLVM_CONFIG --bindir`
|
||||
LLVM_INCLUDE_DIR=`$LLVM_CONFIG --includedir`
|
||||
AC_CHECK_FILE([$LLVM_INCLUDE_DIR/clang/Basic/LLVM.h],[],AC_MSG_ERROR([could not find clang development headers]))
|
||||
AC_CHECK_FILE([$LLVM_LIB_DIR/libLLVMSupport.a],
|
||||
[],
|
||||
AC_MSG_ERROR([could not find clang library files in $LLVM_LIB_DIR])
|
||||
|
@ -55,6 +55,7 @@ endif
|
||||
-include ${TRICK_HOME}/share/trick/makefiles/Makefile.sim
|
||||
-include S_overrides.mk
|
||||
|
||||
ifndef CLEAN_RULES_DEFINED
|
||||
no_makefile_sim:
|
||||
@echo ${TRICK_HOME}/share/trick/makefiles/Makefile.sim not found
|
||||
exit -1
|
||||
@ -63,7 +64,7 @@ tidy:
|
||||
-rm -f S_source.hh S_sie.resource
|
||||
-rm -f S_main* T_main*
|
||||
-rm -f build/Makefile_*
|
||||
-rm -rf S_default.dat
|
||||
-rm -f S_default.dat
|
||||
|
||||
clean: tidy
|
||||
-rm -f DP_Product/DP_rt_frame DP_Product/DP_rt_itimer
|
||||
@ -75,4 +76,4 @@ spotless: clean
|
||||
|
||||
apocalypse: clean
|
||||
@echo "[31mI love the smell of napalm in the morning[0m"
|
||||
|
||||
endif
|
||||
|
24
configure
vendored
24
configure
vendored
@ -7184,6 +7184,30 @@ fi
|
||||
|
||||
LLVM_LIB_DIR=`$LLVM_CONFIG --libdir`
|
||||
LLVM_BIN_DIR=`$LLVM_CONFIG --bindir`
|
||||
LLVM_INCLUDE_DIR=`$LLVM_CONFIG --includedir`
|
||||
as_ac_File=`$as_echo "ac_cv_file_$LLVM_INCLUDE_DIR/clang/Basic/LLVM.h" | $as_tr_sh`
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LLVM_INCLUDE_DIR/clang/Basic/LLVM.h" >&5
|
||||
$as_echo_n "checking for $LLVM_INCLUDE_DIR/clang/Basic/LLVM.h... " >&6; }
|
||||
if eval \${$as_ac_File+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
test "$cross_compiling" = yes &&
|
||||
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||
if test -r "$LLVM_INCLUDE_DIR/clang/Basic/LLVM.h"; then
|
||||
eval "$as_ac_File=yes"
|
||||
else
|
||||
eval "$as_ac_File=no"
|
||||
fi
|
||||
fi
|
||||
eval ac_res=\$$as_ac_File
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
||||
$as_echo "$ac_res" >&6; }
|
||||
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
||||
|
||||
else
|
||||
as_fn_error $? "could not find clang development headers" "$LINENO" 5
|
||||
fi
|
||||
|
||||
as_ac_File=`$as_echo "ac_cv_file_$LLVM_LIB_DIR/libLLVMSupport.a" | $as_tr_sh`
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LLVM_LIB_DIR/libLLVMSupport.a" >&5
|
||||
$as_echo_n "checking for $LLVM_LIB_DIR/libLLVMSupport.a... " >&6; }
|
||||
|
@ -39,7 +39,7 @@ export TRICK_SWIG_EXCLUDE
|
||||
export TRICK_EXT_LIB_DIRS
|
||||
export TRICK_GTE_EXT
|
||||
export TRICK_HOST_CPU := $(shell export TRICK_CC=$(TRICK_CC) && $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
|
||||
export TRICK_EXEC_LINK_LIBS = ${PTHREAD_LIBS} $(PYTHON_LIB) $(UDUNITS_LDFLAGS) $(PLATFORM_LIBS) -lm -ldl -lz
|
||||
export TRICK_EXEC_LINK_LIBS = ${PTHREAD_LIBS} $(PYTHON_LIB) $(UDUNITS_LDFLAGS) $(PLATFORM_LIBS) -lm -ldl
|
||||
export TRICK_LIBS = ${RPATH} -L${TRICK_LIB_DIR} -ltrick -ltrick_pyip -ltrick_comm -ltrick_math -ltrick_units -ltrick_mm
|
||||
export TRICK_SYSTEM_CFLAGS
|
||||
export TRICK_SYSTEM_CXXFLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user