File: configure

package info (click to toggle)
mldonkey 2.8.1-2etch1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,940 kB
  • ctags: 26,220
  • sloc: ml: 138,666; sh: 15,368; cpp: 12,076; ansic: 8,243; asm: 3,858; xml: 3,367; perl: 1,831; makefile: 259; python: 258
file content (45 lines) | stat: -rwxr-xr-x 1,090 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
#!/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 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
          echo "Running Autoconf ($ac)..."
          $ac
       fi \
    && if test ! -f ../Makefile; then
          echo "Running m4 to generate Makefile..."
          m4 Makefile.in > ../Makefile
       fi \
    && ./configure $*
fi