~ubuntu-branches/ubuntu/gutsy/splitvt/gutsy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2001-10-05 20:09:25 UTC
  • Revision ID: james.westby@ubuntu.com-20011005200925-1crvu3veaaofavdb
Tags: upstream-1.6.5
ImportĀ upstreamĀ versionĀ 1.6.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#!/bin/sh
 
3
#  Script to auto-configure splitvt.            -Sam Lantinga
 
4
 
 
5
QUIET="-v"
 
6
CFLAGS=
 
7
MAKE="echo \"Done.  Type 'make' to build\"" 
 
8
 
 
9
echo "Making configuration..."
 
10
 
 
11
while [ $# -gt 0 ]
 
12
  do case $1 in
 
13
       -d) CFLAGS=-DDEBUG
 
14
           echo "Configuring for debug mode."
 
15
           shift;;
 
16
       -m) MAKE="echo Compiling now...; make && \
 
17
                 echo Compilation successfully completed."
 
18
           shift;;
 
19
       -q) QUIET=""
 
20
           shift;;
 
21
        *)  echo "Usage: Configure [-q] [-d] [-m]"
 
22
            exit;;
 
23
     esac
 
24
done
 
25
 
 
26
cc $CFLAGS -o config config.c
 
27
if [ -f config ]; then
 
28
        if ./config $QUIET
 
29
          then eval $MAKE
 
30
        fi
 
31
else
 
32
        echo "Can't compile configuration...  Makefile NOT created."
 
33
        exit 1
 
34
fi
 
35
rm -f config
 
36
exit 0