1 | /* Various paths that might be needed. |
2 | Copyright (C) 2018-2019 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. |
4 | |
5 | The GNU C Library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) any later version. |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Lesser General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Lesser General Public |
16 | License along with the GNU C Library; if not, see |
17 | <http://www.gnu.org/licenses/>. */ |
18 | |
19 | #include <support/support.h> |
20 | #include <support/check.h> |
21 | |
22 | /* The idea here is to make various makefile-level paths available to |
23 | support programs, as canonicalized absolute paths. */ |
24 | |
25 | /* These point to the TOP of the source/build tree, not your (or |
26 | support's) subdirectory. */ |
27 | #ifdef SRCDIR_PATH |
28 | const char support_srcdir_root[] = SRCDIR_PATH; |
29 | #else |
30 | # error please -DSRCDIR_PATH=something in the Makefile |
31 | #endif |
32 | |
33 | #ifdef OBJDIR_PATH |
34 | const char support_objdir_root[] = OBJDIR_PATH; |
35 | #else |
36 | # error please -DOBJDIR_PATH=something in the Makefile |
37 | #endif |
38 | |
39 | #ifdef OBJDIR_ELF_LDSO_PATH |
40 | /* Corresponds to the path to the runtime linker used by the testsuite, |
41 | e.g. OBJDIR_PATH/elf/ld-linux-x86-64.so.2 */ |
42 | const char support_objdir_elf_ldso[] = OBJDIR_ELF_LDSO_PATH; |
43 | #else |
44 | # error please -DOBJDIR_ELF_LDSO_PATH=something in the Makefile |
45 | #endif |
46 | |
47 | #ifdef INSTDIR_PATH |
48 | /* Corresponds to the --prefix= passed to configure. */ |
49 | const char support_install_prefix[] = INSTDIR_PATH; |
50 | #else |
51 | # error please -DINSTDIR_PATH=something in the Makefile |
52 | #endif |
53 | |
54 | #ifdef LIBDIR_PATH |
55 | /* Corresponds to the install's lib/ or lib64/ directory. */ |
56 | const char support_libdir_prefix[] = LIBDIR_PATH; |
57 | #else |
58 | # error please -DLIBDIR_PATH=something in the Makefile |
59 | #endif |
60 | |