Blame support/support_paths.c

Packit Service 0b245c
/* Various paths that might be needed.
Packit Service 0b245c
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service 0b245c
   This file is part of the GNU C Library.
Packit Service 0b245c
Packit Service 0b245c
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 0b245c
   modify it under the terms of the GNU Lesser General Public
Packit Service 0b245c
   License as published by the Free Software Foundation; either
Packit Service 0b245c
   version 2.1 of the License, or (at your option) any later version.
Packit Service 0b245c
Packit Service 0b245c
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 0b245c
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 0b245c
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 0b245c
   Lesser General Public License for more details.
Packit Service 0b245c
Packit Service 0b245c
   You should have received a copy of the GNU Lesser General Public
Packit Service 0b245c
   License along with the GNU C Library; if not, see
Packit Service 0b245c
   <http://www.gnu.org/licenses/>.  */
Packit Service 0b245c
Packit Service 0b245c
#include <support/support.h>
Packit Service 0b245c
#include <support/check.h>
Packit Service 0b245c
Packit Service 0b245c
/* The idea here is to make various makefile-level paths available to
Packit Service 0b245c
   support programs, as canonicalized absolute paths.  */
Packit Service 0b245c
Packit Service 0b245c
/* These point to the TOP of the source/build tree, not your (or
Packit Service 0b245c
   support's) subdirectory.  */
Packit Service 0b245c
#ifdef SRCDIR_PATH
Packit Service 0b245c
const char support_srcdir_root[] = SRCDIR_PATH;
Packit Service 0b245c
#else
Packit Service 0b245c
# error please -DSRCDIR_PATH=something in the Makefile
Packit Service 0b245c
#endif
Packit Service 0b245c
Packit Service 0b245c
#ifdef OBJDIR_PATH
Packit Service 0b245c
const char support_objdir_root[] = OBJDIR_PATH;
Packit Service 0b245c
#else
Packit Service 0b245c
# error please -DOBJDIR_PATH=something in the Makefile
Packit Service 0b245c
#endif
Packit Service 0b245c
Packit Service 0b245c
#ifdef OBJDIR_ELF_LDSO_PATH
Packit Service 0b245c
/* Corresponds to the path to the runtime linker used by the testsuite,
Packit Service 0b245c
   e.g. OBJDIR_PATH/elf/ld-linux-x86-64.so.2  */
Packit Service 0b245c
const char support_objdir_elf_ldso[] = OBJDIR_ELF_LDSO_PATH;
Packit Service 0b245c
#else
Packit Service 0b245c
# error please -DOBJDIR_ELF_LDSO_PATH=something in the Makefile
Packit Service 0b245c
#endif
Packit Service 0b245c
Packit Service 0b245c
#ifdef INSTDIR_PATH
Packit Service 0b245c
/* Corresponds to the --prefix= passed to configure.  */
Packit Service 0b245c
const char support_install_prefix[] = INSTDIR_PATH;
Packit Service 0b245c
#else
Packit Service 0b245c
# error please -DINSTDIR_PATH=something in the Makefile
Packit Service 0b245c
#endif
Packit Service 0b245c
Packit Service 0b245c
#ifdef LIBDIR_PATH
Packit Service 0b245c
/* Corresponds to the install's lib/ or lib64/ directory.  */
Packit Service 0b245c
const char support_libdir_prefix[] = LIBDIR_PATH;
Packit Service 0b245c
#else
Packit Service 0b245c
# error please -DLIBDIR_PATH=something in the Makefile
Packit Service 0b245c
#endif
Packit Service ebb289
Packit Service ebb289
#ifdef BINDIR_PATH
Packit Service ebb289
/* Corresponds to the install's bin/ directory.  */
Packit Service ebb289
const char support_bindir_prefix[] = BINDIR_PATH;
Packit Service ebb289
#else
Packit Service ebb289
# error please -DBINDIR_PATH=something in the Makefile
Packit Service ebb289
#endif
Packit Service db0646
Packit Service 210467
#ifdef SBINDIR_PATH
Packit Service 210467
/* Corresponds to the install's bin/ directory.  */
Packit Service 210467
const char support_sbindir_prefix[] = SBINDIR_PATH;
Packit Service 210467
#else
Packit Service 210467
# error please -DSBINDIR_PATH=something in the Makefile
Packit Service 210467
#endif
Packit Service 210467
Packit Service db0646
#ifdef ROOTSBINDIR_PATH
Packit Service db0646
/* Corresponds to the install's sbin/ directory.  */
Packit Service db0646
const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;
Packit Service db0646
#else
Packit Service db0646
# error please -DROOTSBINDIR_PATH=something in the Makefile
Packit Service db0646
#endif
Packit Service 16bd66
Packit Service 16bd66
#ifdef COMPLOCALEDIR_PATH
Packit Service 16bd66
/* Corresponds to the install's compiled locale directory.  */
Packit Service 16bd66
const char support_complocaledir_prefix[] = COMPLOCALEDIR_PATH;
Packit Service 16bd66
#else
Packit Service 16bd66
# error please -DCOMPLOCALEDIR_PATH=something in the Makefile
Packit Service 16bd66
#endif