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.
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.
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.
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 <https://www.gnu.org/licenses/>. */
19 #include <support/support.h>
20 #include <support/check.h>
22 /* The idea here is to make various makefile-level paths available to
23 support programs, as canonicalized absolute paths. */
25 /* These point to the TOP of the source/build tree, not your (or
26 support's) subdirectory. */
28 const char support_srcdir_root
[] = SRCDIR_PATH
;
30 # error please -DSRCDIR_PATH=something in the Makefile
34 const char support_objdir_root
[] = OBJDIR_PATH
;
36 # error please -DOBJDIR_PATH=something in the Makefile
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
;
44 # error please -DOBJDIR_ELF_LDSO_PATH=something in the Makefile
48 /* Corresponds to the --prefix= passed to configure. */
49 const char support_install_prefix
[] = INSTDIR_PATH
;
51 # error please -DINSTDIR_PATH=something in the Makefile
55 /* Corresponds to the install's lib/ or lib64/ directory. */
56 const char support_libdir_prefix
[] = LIBDIR_PATH
;
58 # error please -DLIBDIR_PATH=something in the Makefile
62 /* Corresponds to the install's bin/ directory. */
63 const char support_bindir_prefix
[] = BINDIR_PATH
;
65 # error please -DBINDIR_PATH=something in the Makefile
69 /* Corresponds to the install's bin/ directory. */
70 const char support_sbindir_prefix
[] = SBINDIR_PATH
;
72 # error please -DSBINDIR_PATH=something in the Makefile
75 #ifdef ROOTSBINDIR_PATH
76 /* Corresponds to the install's sbin/ directory. */
77 const char support_install_rootsbindir
[] = ROOTSBINDIR_PATH
;
79 # error please -DROOTSBINDIR_PATH=something in the Makefile