llvm.org GIT mirror llvm / 6e96d81
Implement fix for PR471: * Add --enable-debug-runtime option, defaults to disabled * Pass the new config var, DEBUG_RUNTIME, to Makefiles * Don't use -Wa,-strip-debug if debug-runtime is enabled git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24891 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
4 changed file(s) with 63 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
177177 #ENABLE_OPTIMIZED = 1
178178 @ENABLE_OPTIMIZED@
179179
180 # When DEBUG_RUNTIME is enabled, the runtime libraries will retain debug
181 # symbols.
182 #DEBUG_RUNTIME = 1
183 @DEBUG_RUNTIME@
184
180185 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
181186 # information to allow gprof to be used to get execution frequencies.
182187 #ENABLE_PROFILING = 1
768768 else
769769
770770 # make the C and C++ compilers strip debug info out of bytecode libraries.
771 ifndef DEBUG_RUNTIME
771772 BCCompile.C += -Wa,-strip-debug
772773 BCCompile.CXX += -Wa,-strip-debug
774 endif
773775
774776 all-local:: $(LibName.BCA)
775777
196196 AC_SUBST(ENABLE_OPTIMIZED,[[]])
197197 else
198198 AC_SUBST(ENABLE_OPTIMIZED,[[ENABLE_OPTIMIZED=1]])
199 fi
200
201 dnl --enable-debug-runtime : should runtime libraries have debug symbols?
202 AC_ARG_ENABLE(debug-runtime,
203 AS_HELP_STRING([--enable-debug-runtime,Build runtime libs with debug symbols (default is NO)]),,enableval=no)
204 if test ${enableval} = "no" ; then
205 AC_SUBST(DEBUG_RUNTIME,[[]])
206 else
207 AC_SUBST(DEBUG_RUNTIME,[[DEBUG_RUNTIME=1]])
199208 fi
200209
201210 dnl --enable-jit: check whether they want to enable the jit
475475 # include
476476 #endif"
477477
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479479 ac_subst_files=''
480480
481481 # Initialize some variables set by options.
10341034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
10351035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
10361036 --enable-optimized
1037 --enable-debug-runtime
10371038 --enable-jit Enable Just In Time Compiling (default is YES)
10381039 --enable-doxygen Build doxygen documentation (default is NO)
10391040 --enable-threads Use threads if available (default is YES)
29812982
29822983 fi
29832984
2985 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2986 if test "${enable_debug_runtime+set}" = set; then
2987 enableval="$enable_debug_runtime"
2988
2989 else
2990 enableval=no
2991 fi;
2992 if test ${enableval} = "no" ; then
2993 DEBUG_RUNTIME=
2994
2995 else
2996 DEBUG_RUNTIME=DEBUG_RUNTIME=1
2997
2998 fi
2999
29843000 # Check whether --enable-jit or --disable-jit was given.
29853001 if test "${enable_jit+set}" = set; then
29863002 enableval="$enable_jit"
83608376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
83618377 lt_status=$lt_dlunknown
83628378 cat > conftest.$ac_ext <
8363 #line 8364 "configure"
8379 #line 8380 "configure"
83648380 #include "confdefs.h"
83658381
83668382 #if HAVE_DLFCN_H
1035110367 ;;
1035210368 *-*-irix6*)
1035310369 # Find out which ABI we are using.
10354 echo '#line 10355 "configure"' > conftest.$ac_ext
10370 echo '#line 10371 "configure"' > conftest.$ac_ext
1035510371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1035610372 (eval $ac_compile) 2>&5
1035710373 ac_status=$?
1083610852
1083710853
1083810854 # Provide some information about the compiler.
10839 echo "$as_me:10840:" \
10855 echo "$as_me:10856:" \
1084010856 "checking for Fortran 77 compiler version" >&5
1084110857 ac_compiler=`set X $ac_compile; echo $2`
1084210858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1189311909 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1189411910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1189511911 -e 's:$: $lt_compiler_flag:'`
11896 (eval echo "\"\$as_me:11897: $lt_compile\"" >&5)
11912 (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
1189711913 (eval "$lt_compile" 2>conftest.err)
1189811914 ac_status=$?
1189911915 cat conftest.err >&5
11900 echo "$as_me:11901: \$? = $ac_status" >&5
11916 echo "$as_me:11917: \$? = $ac_status" >&5
1190111917 if (exit $ac_status) && test -s "$ac_outfile"; then
1190211918 # The compiler can only warn and ignore the option if not recognized
1190311919 # So say no if there are warnings
1213612152 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1213712153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1213812154 -e 's:$: $lt_compiler_flag:'`
12139 (eval echo "\"\$as_me:12140: $lt_compile\"" >&5)
12155 (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
1214012156 (eval "$lt_compile" 2>conftest.err)
1214112157 ac_status=$?
1214212158 cat conftest.err >&5
12143 echo "$as_me:12144: \$? = $ac_status" >&5
12159 echo "$as_me:12160: \$? = $ac_status" >&5
1214412160 if (exit $ac_status) && test -s "$ac_outfile"; then
1214512161 # The compiler can only warn and ignore the option if not recognized
1214612162 # So say no if there are warnings
1219612212 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1219712213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1219812214 -e 's:$: $lt_compiler_flag:'`
12199 (eval echo "\"\$as_me:12200: $lt_compile\"" >&5)
12215 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
1220012216 (eval "$lt_compile" 2>out/conftest.err)
1220112217 ac_status=$?
1220212218 cat out/conftest.err >&5
12203 echo "$as_me:12204: \$? = $ac_status" >&5
12219 echo "$as_me:12220: \$? = $ac_status" >&5
1220412220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1220512221 then
1220612222 # The compiler can only warn and ignore the option if not recognized
1438114397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1438214398 lt_status=$lt_dlunknown
1438314399 cat > conftest.$ac_ext <
14384 #line 14385 "configure"
14400 #line 14401 "configure"
1438514401 #include "confdefs.h"
1438614402
1438714403 #if HAVE_DLFCN_H
1447914495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1448014496 lt_status=$lt_dlunknown
1448114497 cat > conftest.$ac_ext <
14482 #line 14483 "configure"
14498 #line 14499 "configure"
1448314499 #include "confdefs.h"
1448414500
1448514501 #if HAVE_DLFCN_H
1667216688 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1667316689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1667416690 -e 's:$: $lt_compiler_flag:'`
16675 (eval echo "\"\$as_me:16676: $lt_compile\"" >&5)
16691 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
1667616692 (eval "$lt_compile" 2>conftest.err)
1667716693 ac_status=$?
1667816694 cat conftest.err >&5
16679 echo "$as_me:16680: \$? = $ac_status" >&5
16695 echo "$as_me:16696: \$? = $ac_status" >&5
1668016696 if (exit $ac_status) && test -s "$ac_outfile"; then
1668116697 # The compiler can only warn and ignore the option if not recognized
1668216698 # So say no if there are warnings
1673216748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1673316749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1673416750 -e 's:$: $lt_compiler_flag:'`
16735 (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
16751 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
1673616752 (eval "$lt_compile" 2>out/conftest.err)
1673716753 ac_status=$?
1673816754 cat out/conftest.err >&5
16739 echo "$as_me:16740: \$? = $ac_status" >&5
16755 echo "$as_me:16756: \$? = $ac_status" >&5
1674016756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1674116757 then
1674216758 # The compiler can only warn and ignore the option if not recognized
1809318109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1809418110 lt_status=$lt_dlunknown
1809518111 cat > conftest.$ac_ext <
18096 #line 18097 "configure"
18112 #line 18113 "configure"
1809718113 #include "confdefs.h"
1809818114
1809918115 #if HAVE_DLFCN_H
1819118207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1819218208 lt_status=$lt_dlunknown
1819318209 cat > conftest.$ac_ext <
18194 #line 18195 "configure"
18210 #line 18211 "configure"
1819518211 #include "confdefs.h"
1819618212
1819718213 #if HAVE_DLFCN_H
1902819044 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1902919045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1903019046 -e 's:$: $lt_compiler_flag:'`
19031 (eval echo "\"\$as_me:19032: $lt_compile\"" >&5)
19047 (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
1903219048 (eval "$lt_compile" 2>conftest.err)
1903319049 ac_status=$?
1903419050 cat conftest.err >&5
19035 echo "$as_me:19036: \$? = $ac_status" >&5
19051 echo "$as_me:19052: \$? = $ac_status" >&5
1903619052 if (exit $ac_status) && test -s "$ac_outfile"; then
1903719053 # The compiler can only warn and ignore the option if not recognized
1903819054 # So say no if there are warnings
1908819104 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1908919105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1909019106 -e 's:$: $lt_compiler_flag:'`
19091 (eval echo "\"\$as_me:19092: $lt_compile\"" >&5)
19107 (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
1909219108 (eval "$lt_compile" 2>out/conftest.err)
1909319109 ac_status=$?
1909419110 cat out/conftest.err >&5
19095 echo "$as_me:19096: \$? = $ac_status" >&5
19111 echo "$as_me:19112: \$? = $ac_status" >&5
1909619112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1909719113 then
1909819114 # The compiler can only warn and ignore the option if not recognized
2112721143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2112821144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2112921145 -e 's:$: $lt_compiler_flag:'`
21130 (eval echo "\"\$as_me:21131: $lt_compile\"" >&5)
21146 (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
2113121147 (eval "$lt_compile" 2>conftest.err)
2113221148 ac_status=$?
2113321149 cat conftest.err >&5
21134 echo "$as_me:21135: \$? = $ac_status" >&5
21150 echo "$as_me:21151: \$? = $ac_status" >&5
2113521151 if (exit $ac_status) && test -s "$ac_outfile"; then
2113621152 # The compiler can only warn and ignore the option if not recognized
2113721153 # So say no if there are warnings
2137021386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2137121387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2137221388 -e 's:$: $lt_compiler_flag:'`
21373 (eval echo "\"\$as_me:21374: $lt_compile\"" >&5)
21389 (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
2137421390 (eval "$lt_compile" 2>conftest.err)
2137521391 ac_status=$?
2137621392 cat conftest.err >&5
21377 echo "$as_me:21378: \$? = $ac_status" >&5
21393 echo "$as_me:21394: \$? = $ac_status" >&5
2137821394 if (exit $ac_status) && test -s "$ac_outfile"; then
2137921395 # The compiler can only warn and ignore the option if not recognized
2138021396 # So say no if there are warnings
2143021446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2143121447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2143221448 -e 's:$: $lt_compiler_flag:'`
21433 (eval echo "\"\$as_me:21434: $lt_compile\"" >&5)
21449 (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
2143421450 (eval "$lt_compile" 2>out/conftest.err)
2143521451 ac_status=$?
2143621452 cat out/conftest.err >&5
21437 echo "$as_me:21438: \$? = $ac_status" >&5
21453 echo "$as_me:21454: \$? = $ac_status" >&5
2143821454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2143921455 then
2144021456 # The compiler can only warn and ignore the option if not recognized
2361523631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2361623632 lt_status=$lt_dlunknown
2361723633 cat > conftest.$ac_ext <
23618 #line 23619 "configure"
23634 #line 23635 "configure"
2361923635 #include "confdefs.h"
2362023636
2362123637 #if HAVE_DLFCN_H
2371323729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2371423730 lt_status=$lt_dlunknown
2371523731 cat > conftest.$ac_ext <
23716 #line 23717 "configure"
23732 #line 23733 "configure"
2371723733 #include "confdefs.h"
2371823734
2371923735 #if HAVE_DLFCN_H
3150231518 s,@EXEEXT@,$EXEEXT,;t t
3150331519 s,@OBJEXT@,$OBJEXT,;t t
3150431520 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31521 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
3150531522 s,@JIT@,$JIT,;t t
3150631523 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
3150731524 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t