hjl / source-git / glibc

Forked from source-git/glibc 4 years ago
Clone

Blame support/support_paths.c

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