File: log4cpp-config

package info (click to toggle)
log4cpp 0.2.5-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,436 kB
  • ctags: 524
  • sloc: sh: 6,657; cpp: 1,960; ansic: 421; makefile: 334
file content (117 lines) | stat: -rw-r--r-- 3,932 bytes parent folder | download
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
#! /bin/sh
 
package="log4cpp"
version="0.2.5"
libs="log4cpp"
 
prefix="/usr"
exec_prefix="${prefix}"
bindir="${exec_prefix}/bin"
sbindir="${exec_prefix}/sbin"
libexecdir="${exec_prefix}/libexec"
datadir="${prefix}/share"
sysconfdir="${prefix}/etc"
sharedstatedir="${prefix}/com"
localstatedir="${prefix}/var"
libdir="${exec_prefix}/lib"
infodir="${prefix}/info"
mandir="${prefix}/share/man"
includedir="${prefix}/include"
target=""
host="i686-pc-linux-gnu"
build="i686-pc-linux-gnu"
 
if test "$#" -eq 0; then
   cat <<EOF
Usage: $package-config OPTIONS
Options:
  --prefix=DIR) : \$prefix
  --package) : \$package
  --version) : \$version
  --cflags) : -I\$includedir
  --libs) : -L\$libdir -l\$package
  --help) print all the options (not just these)
EOF
fi
 
o=""
h=""
for i ; do
  case $i in
  --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;
  --prefix)    o="$o $prefix" ;;
  --package)   o="$o $package" ;;
  --version)   o="$o $version" ;;
  --cflags) if test "_$includedir" != "_/usr/include"
          then o="$o -I$includedir" ; fi
  ;;
  --libs)      o="$o -L$libdir -l$libs" ;;
  --exec_prefix|--eprefix) o="$o $exec_prefix" ;;
  --bindir)                o="$o $bindir" ;;
  --sbindir)               o="$o $sbindir" ;;
  --libexecdir)            o="$o $libexecdir" ;;
  --datadir)               o="$o $datadir" ;;
  --datainc)               o="$o -I$datadir" ;;
  --datalib)               o="$o -L$datadir" ;;
  --sysconfdir)            o="$o $sysconfdir" ;;
  --sharedstatedir)        o="$o $sharedstatedir" ;;
  --localstatedir)         o="$o $localstatedir" ;;
  --libdir)                o="$o $libdir" ;;
  --libadd)                o="$o -L$libdir" ;;
  --infodir)               o="$o $infodir" ;;
  --mandir)                o="$o $mandir" ;;
  --target)                o="$o $target" ;;
  --host)                  o="$o $host" ;;
  --build)                 o="$o $build" ;;
  --data)                  o="$o -I$datadir/$package" ;;
  --pkgdatadir)            o="$o $datadir/$package" ;;
  --pkgdatainc)            o="$o -I$datadir/$package" ;;
  --pkgdatalib)            o="$o -L$datadir/$package" ;;
  --pkglibdir)             o="$o $libdir/$package" ;;
  --pkglibinc)             o="$o -I$libinc/$package" ;;
  --pkglibadd)             o="$o -L$libadd/$package" ;;
  --pkgincludedir)         o="$o $includedir/$package" ;;
  --help) h="1" ;;
  -?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*) 
       v=`echo $i | sed -e s://:\$:g`
       v=`eval "echo $v"` 
       o="$o $v" ;; 
  esac
done
 
o=`eval "echo $o"`
o=`eval "echo $o"`
eval "echo $o"
 
if test ! -z "$h" ; then 
cat <<EOF
  --prefix=xxx)      (what is that for anyway?)
  --prefix)         \$prefix        $prefix
  --package)        \$package       $package
  --version)        \$version       $version
  --cflags)         -I\$includedir    unless it is /usr/include
  --libs)           -L\$libdir -l\$PACKAGE \$LIBS
  --exec_prefix) or... 
  --eprefix)        \$exec_prefix   $exec_prefix
  --bindir)         \$bindir        $bindir
  --sbindir)        \$sbindir       $sbindir
  --libexecdir)     \$libexecdir    $libexecdir
  --datadir)        \$datadir       $datadir
  --sysconfdir)     \$sysconfdir    $sysconfdir
  --sharedstatedir) \$sharedstatedir$sharedstatedir
  --localstatedir)  \$localstatedir $localstatedir
  --libdir)         \$libdir        $libdir
  --infodir)        \$infodir       $infodir
  --mandir)         \$mandir        $mandir
  --target)         \$target        $target
  --host)           \$host          $host
  --build)          \$build         $build
  --data)           -I\$datadir/\$package
  --pkgdatadir)     \$datadir/\$package
  --pkglibdir)      \$libdir/\$package
  --pkgincludedir)  \$includedir/\$package
  --help)           generated by ac_create_generic_config.m4
  -I//varname and other inc-targets like --pkgdatainc supported
  -L//varname and other lib-targets, e.g. --pkgdatalib or --libadd
EOF
fi