llvm.org GIT mirror llvm / 420d23c
Add configure options for specifying where to look for libstdc++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88943 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 9 years ago
5 changed file(s) with 142 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
313313 BINUTILS_INCDIR := @BINUTILS_INCDIR@
314314
315315 C_INCLUDE_DIRS := @C_INCLUDE_DISR@
316 CXX_INCLUDE_ROOT := @CXX_INCLUDE_ROOT@
317 CXX_INCLUDE_ARCH := @CXX_INCLUDE_ARCH@
318 CXX_INCLUDE_32BIT_DIR = @CXX_INCLUDE_32BIT_DIR@
319 CXX_INCLUDE_64BIT_DIR = @CXX_INCLUDE_64BIT_DIR@
316320
317321 # When ENABLE_LLVMC_DYNAMIC is enabled, LLVMC will link libCompilerDriver
318322 # dynamically. This is needed to make dynamic plugins work on some targets
673673 AC_DEFINE_UNQUOTED(C_INCLUDE_DIRS,"$withval",
674674 [Directories clang will search for headers])
675675
676 AC_ARG_WITH(cxx-include-root,
677 AS_HELP_STRING([--with-cxx-include-root],
678 [Directory with the libstdc++ headers.]),,
679 withval="")
680 AC_DEFINE_UNQUOTED(CXX_INCLUDE_ROOT,"$withval",
681 [Directory with the libstdc++ headers.])
682
683 AC_ARG_WITH(cxx-include-arch,
684 AS_HELP_STRING([--with-cxx-include-arch],
685 [Architecture of the libstdc++ headers.]),,
686 withval="")
687 AC_DEFINE_UNQUOTED(CXX_INCLUDE_ARCH,"$withval",
688 [Arch the libstdc++ headers.])
689
690 AC_ARG_WITH(cxx-include-32bit-dir,
691 AS_HELP_STRING([--with-cxx-include-32bit-dir],
692 [32 bit multilib dir.]),,
693 withval="")
694 AC_DEFINE_UNQUOTED(CXX_INCLUDE_32BIT_DIR,"$withval",
695 [32 bit multilib directory.])
696
697 AC_ARG_WITH(cxx-include-64bit-dir,
698 AS_HELP_STRING([--with-cxx-include-64bit-dir],
699 [64 bit multilib directory.]),,
700 withval="")
701 AC_DEFINE_UNQUOTED(CXX_INCLUDE_64BIT_DIR,"$withval",
702 [64 bit multilib directory.])
703
676704 dnl Allow linking of LLVM with GPLv3 binutils code.
677705 AC_ARG_WITH(binutils-include,
678706 AS_HELP_STRING([--with-binutils-include],
16041604 is stdlib)
16051605 --with-c-include-dirs Colon separated list of directories clang will
16061606 search for headers
1607 --with-cxx-include-root Directory with the libstdc++ headers.
1608 --with-cxx-include-arch Architecture of the libstdc++ headers.
1609 --with-cxx-include-32bit-dir
1610 32 bit multilib dir.
1611 --with-cxx-include-64bit-dir
1612 64 bit multilib directory.
16071613 --with-binutils-include Specify path to binutils/include/ containing
16081614 plugin-api.h file for gold plugin.
16091615 --with-tclinclude directory where tcl headers are
52875293
52885294
52895295
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298 withval=$with_cxx_include_root;
5299 else
5300 withval=""
5301 fi
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5306 _ACEOF
5307
5308
5309
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312 withval=$with_cxx_include_arch;
5313 else
5314 withval=""
5315 fi
5316
5317
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5320 _ACEOF
5321
5322
5323
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326 withval=$with_cxx_include_32bit_dir;
5327 else
5328 withval=""
5329 fi
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5334 _ACEOF
5335
5336
5337
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340 withval=$with_cxx_include_64bit_dir;
5341 else
5342 withval=""
5343 fi
5344
5345
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5348 _ACEOF
5349
5350
5351
52905352 # Check whether --with-binutils-include was given.
52915353 if test "${with_binutils_include+set}" = set; then
52925354 withval=$with_binutils_include;
1105111113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1105211114 lt_status=$lt_dlunknown
1105311115 cat > conftest.$ac_ext <
11054 #line 11055 "configure"
11116 #line 11117 "configure"
1105511117 #include "confdefs.h"
1105611118
1105711119 #if HAVE_DLFCN_H
1319513257 ;;
1319613258 *-*-irix6*)
1319713259 # Find out which ABI we are using.
13198 echo '#line 13199 "configure"' > conftest.$ac_ext
13260 echo '#line 13261 "configure"' > conftest.$ac_ext
1319913261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1320013262 (eval $ac_compile) 2>&5
1320113263 ac_status=$?
1491314975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1491414976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1491514977 -e 's:$: $lt_compiler_flag:'`
14916 (eval echo "\"\$as_me:14917: $lt_compile\"" >&5)
14978 (eval echo "\"\$as_me:14979: $lt_compile\"" >&5)
1491714979 (eval "$lt_compile" 2>conftest.err)
1491814980 ac_status=$?
1491914981 cat conftest.err >&5
14920 echo "$as_me:14921: \$? = $ac_status" >&5
14982 echo "$as_me:14983: \$? = $ac_status" >&5
1492114983 if (exit $ac_status) && test -s "$ac_outfile"; then
1492214984 # The compiler can only warn and ignore the option if not recognized
1492314985 # So say no if there are warnings other than the usual output.
1518115243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1518215244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1518315245 -e 's:$: $lt_compiler_flag:'`
15184 (eval echo "\"\$as_me:15185: $lt_compile\"" >&5)
15246 (eval echo "\"\$as_me:15247: $lt_compile\"" >&5)
1518515247 (eval "$lt_compile" 2>conftest.err)
1518615248 ac_status=$?
1518715249 cat conftest.err >&5
15188 echo "$as_me:15189: \$? = $ac_status" >&5
15250 echo "$as_me:15251: \$? = $ac_status" >&5
1518915251 if (exit $ac_status) && test -s "$ac_outfile"; then
1519015252 # The compiler can only warn and ignore the option if not recognized
1519115253 # So say no if there are warnings other than the usual output.
1528515347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1528615348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1528715349 -e 's:$: $lt_compiler_flag:'`
15288 (eval echo "\"\$as_me:15289: $lt_compile\"" >&5)
15350 (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
1528915351 (eval "$lt_compile" 2>out/conftest.err)
1529015352 ac_status=$?
1529115353 cat out/conftest.err >&5
15292 echo "$as_me:15293: \$? = $ac_status" >&5
15354 echo "$as_me:15355: \$? = $ac_status" >&5
1529315355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1529415356 then
1529515357 # The compiler can only warn and ignore the option if not recognized
1773717799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1773817800 lt_status=$lt_dlunknown
1773917801 cat > conftest.$ac_ext <
17740 #line 17741 "configure"
17802 #line 17803 "configure"
1774117803 #include "confdefs.h"
1774217804
1774317805 #if HAVE_DLFCN_H
1783717899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1783817900 lt_status=$lt_dlunknown
1783917901 cat > conftest.$ac_ext <
17840 #line 17841 "configure"
17902 #line 17903 "configure"
1784117903 #include "confdefs.h"
1784217904
1784317905 #if HAVE_DLFCN_H
2020520267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2020620268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2020720269 -e 's:$: $lt_compiler_flag:'`
20208 (eval echo "\"\$as_me:20209: $lt_compile\"" >&5)
20270 (eval echo "\"\$as_me:20271: $lt_compile\"" >&5)
2020920271 (eval "$lt_compile" 2>conftest.err)
2021020272 ac_status=$?
2021120273 cat conftest.err >&5
20212 echo "$as_me:20213: \$? = $ac_status" >&5
20274 echo "$as_me:20275: \$? = $ac_status" >&5
2021320275 if (exit $ac_status) && test -s "$ac_outfile"; then
2021420276 # The compiler can only warn and ignore the option if not recognized
2021520277 # So say no if there are warnings other than the usual output.
2030920371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2031020372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2031120373 -e 's:$: $lt_compiler_flag:'`
20312 (eval echo "\"\$as_me:20313: $lt_compile\"" >&5)
20374 (eval echo "\"\$as_me:20375: $lt_compile\"" >&5)
2031320375 (eval "$lt_compile" 2>out/conftest.err)
2031420376 ac_status=$?
2031520377 cat out/conftest.err >&5
20316 echo "$as_me:20317: \$? = $ac_status" >&5
20378 echo "$as_me:20379: \$? = $ac_status" >&5
2031720379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2031820380 then
2031920381 # The compiler can only warn and ignore the option if not recognized
2187921941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2188021942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2188121943 -e 's:$: $lt_compiler_flag:'`
21882 (eval echo "\"\$as_me:21883: $lt_compile\"" >&5)
21944 (eval echo "\"\$as_me:21945: $lt_compile\"" >&5)
2188321945 (eval "$lt_compile" 2>conftest.err)
2188421946 ac_status=$?
2188521947 cat conftest.err >&5
21886 echo "$as_me:21887: \$? = $ac_status" >&5
21948 echo "$as_me:21949: \$? = $ac_status" >&5
2188721949 if (exit $ac_status) && test -s "$ac_outfile"; then
2188821950 # The compiler can only warn and ignore the option if not recognized
2188921951 # So say no if there are warnings other than the usual output.
2198322045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2198422046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2198522047 -e 's:$: $lt_compiler_flag:'`
21986 (eval echo "\"\$as_me:21987: $lt_compile\"" >&5)
22048 (eval echo "\"\$as_me:22049: $lt_compile\"" >&5)
2198722049 (eval "$lt_compile" 2>out/conftest.err)
2198822050 ac_status=$?
2198922051 cat out/conftest.err >&5
21990 echo "$as_me:21991: \$? = $ac_status" >&5
22052 echo "$as_me:22053: \$? = $ac_status" >&5
2199122053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2199222054 then
2199322055 # The compiler can only warn and ignore the option if not recognized
2421824280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2421924281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2422024282 -e 's:$: $lt_compiler_flag:'`
24221 (eval echo "\"\$as_me:24222: $lt_compile\"" >&5)
24283 (eval echo "\"\$as_me:24284: $lt_compile\"" >&5)
2422224284 (eval "$lt_compile" 2>conftest.err)
2422324285 ac_status=$?
2422424286 cat conftest.err >&5
24225 echo "$as_me:24226: \$? = $ac_status" >&5
24287 echo "$as_me:24288: \$? = $ac_status" >&5
2422624288 if (exit $ac_status) && test -s "$ac_outfile"; then
2422724289 # The compiler can only warn and ignore the option if not recognized
2422824290 # So say no if there are warnings other than the usual output.
2448624548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2448724549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2448824550 -e 's:$: $lt_compiler_flag:'`
24489 (eval echo "\"\$as_me:24490: $lt_compile\"" >&5)
24551 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
2449024552 (eval "$lt_compile" 2>conftest.err)
2449124553 ac_status=$?
2449224554 cat conftest.err >&5
24493 echo "$as_me:24494: \$? = $ac_status" >&5
24555 echo "$as_me:24556: \$? = $ac_status" >&5
2449424556 if (exit $ac_status) && test -s "$ac_outfile"; then
2449524557 # The compiler can only warn and ignore the option if not recognized
2449624558 # So say no if there are warnings other than the usual output.
2459024652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2459124653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2459224654 -e 's:$: $lt_compiler_flag:'`
24593 (eval echo "\"\$as_me:24594: $lt_compile\"" >&5)
24655 (eval echo "\"\$as_me:24656: $lt_compile\"" >&5)
2459424656 (eval "$lt_compile" 2>out/conftest.err)
2459524657 ac_status=$?
2459624658 cat out/conftest.err >&5
24597 echo "$as_me:24598: \$? = $ac_status" >&5
24659 echo "$as_me:24660: \$? = $ac_status" >&5
2459824660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2459924661 then
2460024662 # The compiler can only warn and ignore the option if not recognized
1010
1111 /* Directories clang will search for headers */
1212 #define C_INCLUDE_DIRS "${C_INCLUDE_DIRS}"
13
14 /* Directory clang will search for libstdc++ headers */
15 #define CXX_INCLUDE_ROOT "${CXX_INCLUDE_ROOT}"
16
17 /* Architecture of libstdc++ headers */
18 #define CXX_INCLUDE_ARCH "${CXX_INCLUDE_ARCH}"
19
20 /* 32 bit multilib directory */
21 #define CXX_INCLUDE_32BIT_DIR "${CXX_INCLUDE_32BIT_DIR}"
22
23 /* 64 bit multilib directory */
24 #define CXX_INCLUDE_64BIT_DIR "${CXX_INCLUDE_64BIT_DIR}"
1325
1426 /* Define if position independent code is enabled */
1527 #cmakedefine ENABLE_PIC ${ENABLE_PIC}
66 systems. This function is required for `alloca.c' support on those systems.
77 */
88 #undef CRAY_STACKSEG_END
9
10 /* 32 bit multilib directory. */
11 #undef CXX_INCLUDE_32BIT_DIR
12
13 /* 64 bit multilib directory. */
14 #undef CXX_INCLUDE_64BIT_DIR
15
16 /* Arch the libstdc++ headers. */
17 #undef CXX_INCLUDE_ARCH
18
19 /* Directory with the libstdc++ headers. */
20 #undef CXX_INCLUDE_ROOT
921
1022 /* Define to 1 if using `alloca.c'. */
1123 #undef C_ALLOCA