Debian Codegraph @

Modules/ThirdParty/HDF5/src/itkhdf5/config/cmake/libh5cc.in

raw
1 #! /bin/sh
2 ##
3 # Copyright by The HDF Group.
4 # Copyright by the Board of Trustees of the University of Illinois.
5 # All rights reserved.
6 #
7 # This file is part of HDF5. The full HDF5 copyright notice, including
8 # terms governing use, modification, and redistribution, is contained in
9 # the COPYING file, which can be found at the root of the source code
10 # distribution tree, or in https://www.hdfgroup.org/licenses.
11 # If you do not have access to either file, you may request a copy from
12 # [email protected].
13 ##
14
15 prg=$0
16 if [ ! -e "$prg" ]; then
17 case $prg in
18 (*/*) exit 1;;
19 (*) prg=$(command -v -- "$prg") || exit;;
20 esac
21 fi
22 dir=$(
23 cd -P -- "$(dirname -- "$prg")/.." && pwd -P
24 ) || exit
25 prg=$dir/$(basename -- "$prg") || exit
26
27 printf '%s\n' "$prg"
28 printf 'dir is %s\n' "$dir"
29
30 export PKG_CONFIG_PATH=$dir/lib/pkgconfig
31
32 @_PKG_CONFIG_COMPILER@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@` $@