~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to spm/configure.ac

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(spm.in)
2
 
 
3
 
#steam detection code
4
 
steamcore=${steamdir}
5
 
AC_ARG_WITH(steam,
6
 
AC_HELP_STRING([--with-steam[=coreserver]],[Use the specified steam core.]),
7
 
[
8
 
        echo "$withval ... trying..."
9
 
        if test -d "$withval"; then
10
 
           steamcore=$withval
11
 
           echo "Using $steamcore"
12
 
           if test "x$configdir" = "x"; then
13
 
                configs = "${steamcore}/config"
14
 
           fi 
15
 
        else
16
 
           echo "Warning: $withval does not exist."
17
 
           steamcore=$withval
18
 
        fi
19
 
])
20
 
 
21
 
if test $steamcore = no; then
22
 
   AC_MSG_CHECKING(location of coreserver)
23
 
   for a in .. /usr/lib/steam/coreserver /usr/local/steam/coreserver /usr/steam/coreserver /usr/lib/steam /usr/steam /usr/local/steam /opt/steam; do
24
 
    if test -d ${a}; then
25
 
        AC_MSG_CHECKING(in ${a})
26
 
        if test -f "$a/steam"; then
27
 
           steamcore=${a}
28
 
           AC_MSG_RESULT(Found steam in $steamcore)
29
 
        fi
30
 
    fi
31
 
   done
32
 
fi
33
 
 
34
 
if test $steamcore = no; then
35
 
   AC_MSG_ERROR(Failed to find steam. You can submit the steam installation directory with --with-steam=);
36
 
fi
37
 
 
38
 
AC_SUBST(steamcore)
39
 
AC_SUBST(configdir)
40
 
 
41
 
AC_OUTPUT(spm)
42
 
chmod 755 spm