/usr/bin/sane-config is in libsane-dev 1.0.22-7.4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #!/bin/sh
#
# This script is part of SANE, <URL:http://www.sane-project.org/>
#
# Send bugreports and other requests to sane-devel@lists.alioth.debian.org
PACKAGE="sane-backends"
scriptname="sane-config"
LINKER_RPATH=""
prefix="/usr"
exec_prefix="${prefix}"
LDFLAGS=""
LIBS=""
pkgincludedir="@pkgincludedir@"
pkglibdir="@pkglibdir@"
includedir="${prefix}/include"
mandir="${prefix}/share/man"
infodir="${datarootdir}/info"
libdir="${prefix}/lib/x86_64-linux-gnu"
localstatedir="/var"
sysconfdir="/etc"
datarootdir="${prefix}/share"
datadir="${prefix}/share"
libexecdir="${exec_prefix}/libexec"
sbindir="${exec_prefix}/sbin"
bindir="${exec_prefix}/bin"
#${prefix}
#exec_prefix_set=no
srcdir="."
top_srcdir=".."
cflags=
usage ()
{
echo "Usage: " 1>&2
echo "$scriptname --version - show installed script and SANE version" 1>&2
echo "$scriptname --ldflags - linker flags required to link with SANE" 1>&2
echo "$scriptname --libs - libraries required to link with SANE" 1>&2
echo "$scriptname --cflags - compiler flags required to find SANE headers" 1>&2
echo "$scriptname --help - show usage info (this message) " 1>&2
echo "$scriptname --help SUBCOMMAND - show help for SUBCOMMAND " 1>&2
echo "$scriptname --prefix - prefix used during SANE compile" 1>&2
echo "$scriptname --exec-prefix - exec-prefix used during SANE compile" 1>&2
}
if test $# -eq 0; then
usage
exit 1
fi
if test $# -gt 0; then
case $1 in
--version)
echo 1.0.22
;;
--help)
if test $# -eq 1; then
usage
elif test $# -eq 2; then
case $2 in
--cflags)
echo "Usage: $0 --cflags"
echo " Print C compiler flags for compiling code that uses SANE."
echo " This includes any \`-I' flags needed to find Sane's header files."
;;
--ldflags)
echo "Usage: $0 --ldflags"
echo " Print linker flags for building the \`$PACKAGE' executable."
echo " Print the linker command-line flags necessary to link against"
echo " the SANE library. The libraries are listed with --libs."
;;
--libs)
echo "Usage: $0 --libs"
echo " Print linker flags for building the \`$PACKAGE' executable."
echo " Print the linker command-line flags necessary to link against"
echo " the SANE library, and any other libraries it requires."
;;
esac
else
usage
fi
exit 1
;;
--ldflags)
if test -z "$LINKER_RPATH"; then
echo "-L${libdir} "
else
echo "-L${libdir} ${LINKER_RPATH}${libdir}"
fi
;;
--libs)
echo "-lsane ${LIBS}"
;;
--cflags)
unique_cflags=
if test "${includedir}" != "/usr/include"; then
unique_cflags="${unique_cflags} -I${includedir}"
fi
for i in $cflags; do
if test "${i}" != "-I${includedir}"; then
unique_cflags="${unique_cflags} $i"
fi
done
echo ${unique_cflags}
;;
--prefix)
echo ${prefix}
;;
--exec-prefix)
echo ${exec_prefix}
;;
*)
usage
exit 1
;;
esac
fi
|