This file is indexed.

/usr/bin/vigra-config is in libvigraimpex-dev 1.7.1+dfsg1-2ubuntu4.

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
#!/usr/bin/env python

from optparse import OptionParser
import sys

hasFFTW = bool('/usr/lib/libfftw3.so')

parser = OptionParser()

parser.add_option("--version", action = 'store_true',
				  help = "output version (1.7.1)")
#parser.add_option("--target", action = 'store_true',
#				  help = "output platform this VIGRA library was configured for")
parser.add_option("--impex-lib", "--libs", action = 'store_true',
				  help = "output flags for linking libvigraimpex")
parser.add_option("--fftw-lib", action = 'store_true',
				  help = "output flags for linking libfftw"
				  + " (unavailable)" if not hasFFTW else "")
#parser.add_option("--rfftw-lib", action = 'store_true',
#				  help = "output flags for linking librfftw and libfftw")
parser.add_option("--cppflags", action = 'store_true',
				  help = "output include flags for vigra"
				  + " and fftw" if hasFFTW else "")
parser.add_option("--include-path", "--includepath", action = 'store_true',
				  help = "output path to VIGRA includes")
parser.add_option("--docdir", action = 'store_true',
				  help = "output path to VIGRA documentation")

(op, args) = parser.parse_args()

if len(sys.argv) < 2:
	sys.stderr.write("ERROR: no parameters given.\n")
	parser.print_help()
	sys.exit(1)

# --------------------------------------------------------------------

import os.path

# don't output -L flags for the following dirs (assumed to be compiler
# built-in):
standardLibDirs = ["/lib", "/usr/lib", "/lib64", "/usr/lib64"]

libExt = ".so" if not sys.platform == "darwin" else ".dylib"

def filename2ldflags(libFilename):
	dir, fn = os.path.split(libFilename)
	if not (fn.startswith("lib") and fn.endswith(libExt)):
		if libFilename:
			sys.stderr.write("ERROR: don't know how to handle %r!\n" % libFilename)
		return []
	lib = fn[3:-len(libExt)]

	result = []
	if dir not in standardLibDirs:
		result.append("-L" + dir)
	result.append("-l" + lib)
	return result

if op.version:
	print "1.7.1"

if op.cppflags: # was: --cppflags|--cxxincludes|--cxxflags|--cincludes|--cflags
	print '-I/usr/include'

if op.impex_lib: # was: --impex_lib|--impex-lib|--libs
	ldflags = []

	libDir = '/usr/lib'
	if libDir not in standardLibDirs:
		ldflags.append('-L' + libDir)

	ldflags.append('-lvigraimpex')

	for flag in 'general;/usr/lib/x86_64-linux-gnu/libjpeg.so;general;/usr/lib/x86_64-linux-gnu/libpng.so;general;/usr/lib/x86_64-linux-gnu/libz.so;general;/usr/lib/x86_64-linux-gnu/libtiff.so;'.split(';'):
		if flag == 'general':
			continue
		for fl in filename2ldflags(flag):
			if fl not in ldflags:
				ldflags.append(fl)

	print " ".join(ldflags)

if op.fftw_lib:
	if not hasFFTW:
		sys.stderr.write("VIGRA was configured without FFTW switches, libpath unknown!\n")
		sys.exit(1)
	print " ".join(filename2ldflags('/usr/lib/libfftw3.so'))

if op.include_path: # was: --include_path|--include-path|--includepath
	print '/usr/include'

if op.docdir:
	print '/usr/share/doc/libvigraimpex-dev/html/'