File: configure

package info (click to toggle)
mldonkey 2.9.5-2%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 17,064 kB
  • ctags: 27,215
  • sloc: ml: 146,054; cpp: 11,806; ansic: 7,663; sh: 4,187; asm: 3,858; xml: 3,472; makefile: 203; perl: 54
file content (47 lines) | stat: -rwxr-xr-x 1,167 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

mkdir -p build
rm -f icons/big/*.ml_icon
rm -f icons/small/*.ml_icon
rm -f icons/*.ml_icon
rm -f *.cma *.cmxa *.a
rm -f mlgnut mlnap mlbt mldonkey mlslsk mldonkey_gui*
rm -f build/*.cma build/*.cmxa build/*.a
touch .depend

case "`uname -s`" in
  *FreeBSD*)
    CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
    export CPPFLAGS
    LDFLAGS="${LDFLAGS} -L/usr/local/lib"
    export LDFLAGS
    ;;
  *)
    ;;
esac

if test ! -d config; then
    echo "Missing ./config/ directory. Re-download mldonkey"
else
    cd config \
    && if test ! -f ./configure; then
          if which autoconf261; then
              ac="autoconf261"
          else if which autoconf259; then
              ac="autoconf259"
          else if which autoconf-2.59; then
              ac="autoconf-2.59"
          else if which autoconf-2.5x; then
              ac="autoconf-2.5x"
          else
              ac="autoconf"
          fi; fi; fi; fi
          echo "Running Autoconf ($ac)..."
          $ac
       fi \
    && if test ! -f ../Makefile; then
          echo "Running m4 to generate Makefile..."
          m4 Makefile.in > ../Makefile
       fi \
    && ./configure $*
fi