File: configure

package info (click to toggle)
kde4libs 4:4.14.2-5+deb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 82,428 kB
  • ctags: 99,415
  • sloc: cpp: 761,864; xml: 12,344; ansic: 6,295; java: 4,060; perl: 2,938; yacc: 2,507; python: 1,207; sh: 1,179; ruby: 337; lex: 278; makefile: 29
file content (61 lines) | stat: -rwxr-xr-x 2,148 bytes parent folder | download | duplicates (8)
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
#!/bin/sh


# Internal variables.
alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
CMAKEFLAGS=
srcdir="."

# Get command line options. We use getopt to "break them down into nice, digestible particles".
set -- `getopt -l "srcdir:,prefix:,eprefix:,bindir:,sbindir:,libexecdir:,sysconfdir:,libdir:,includedir:,oldincludedir:,datarootdir:,datadir:,infodir:,localedir:,mandir:,docdir:,htmldir:,dvidir:,pdfdir:,psdir:,quiet,silent,version,help,run" hVqn "$@"`
test $# -lt 1  && exit 1
while test $# -gt 0 
do
  case "$1" in
    -h|--help) echo "$help"; exit;;
    -V|--version) cmake --version; exit;;
       --srcdir) srcdir="$2"; shift;;
       --prefix) prefix="$2"; shift;;
       --bindir) bindir="$2"; shift;;
       --libdir) libdir="$2"; shift;;
       --includedir) includedir="$2"; shift;;
    --) shift; break;;
  esac
  shift
done

# Set up CMake flags.

# Set prefix
if test -n "$prefix"; then
  CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_INSTALL_PREFIX:PATH=$prefix"
fi
# Set bindir.
if test -n "$bindir"; then
  CMAKEFLAGS="$CMAKEFLAGS -DBIN_INSTALL_DIR:PATH=$bindir"
fi
# Set libdir.
if test -n "$libdir"; then
  CMAKEFLAGS="$CMAKEFLAGS -DLIB_INSTALL_DIR:PATH=$libdir"
fi
# Set includedir.
if test -n "$includedir"; then
  CMAKEFLAGS="$CMAKEFLAGS -DINCLUDE_INSTALL_DIR:PATH=$includedir"
fi

# print info.
echo ""
echo "KDE4 uses the CMake (http://www.cmake.org) buildsystem instead of configure."
echo "CMake uses different options than configure, but some have direct equivalents:"
echo "   <srcdir>           : the source directory"
echo "   --prefix=<dir>     : -DCMAKE_INSTALL_PREFIX:PATH=<dir>"
echo "   --bindir=<dir>     : -DBIN_INSTALL_DIR:PATH=<dir>"
echo "   --includedir=<dir> : -DINCLUDE_INSTALL_DIR:PATH=<dir>"
echo "   --libdir=<dir>     : -DLIB_INSTALL_DIR:PATH=<dir>"
echo "Once CMake has run successfully, you can use \"make edit_cache\" to view and modify all settings."
echo "For more information visit \"http://techbase.kde.org/Development/Tutorials/CMake#Run_CMake\""
echo ""
echo "Your current configure options translate more or less to:"
echo "   cmake$CMAKEFLAGS $srcdir ; make ; make install"
echo ""