File: autogen.sh

package info (click to toggle)
libwfut 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,764 kB
  • ctags: 1,808
  • sloc: cpp: 19,810; sh: 11,031; makefile: 532; python: 314
file content (57 lines) | stat: -rwxr-xr-x 1,383 bytes parent folder | download | duplicates (3)
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
#! /bin/sh

rm -f config.cache
#We currently have no scripts in the m4 directory, so we need to create it. Remove this once we have any scripts there.
mkdir -p m4

#Check if the autoreconf command is available, and use that if so.
if command -v autoreconf >/dev/null 2>&1 ; then
  echo autoreconf...
  autoreconf --install
else
  if test -d /usr/local/share/aclocal ; then
    ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I /usr/local/share/aclocal"
  fi

  (command -v aclocal) < /dev/null > /dev/null 2>&1 || {
      echo aclocal not found
      exit 1
  }
  echo aclocal...
  aclocal -I m4 $ACLOCAL_FLAGS

  #The GNU libtoolize is called 'glibtoolize' on Darwin.
  if [ "`echo $OSTYPE | grep darwin`" != "" ] ; then
    LIBTOOLIZE="glibtoolize"
  else
    LIBTOOLIZE="libtoolize"
  fi

  (command -v $LIBTOOLIZE) < /dev/null > /dev/null 2>&1 || {
      echo $LIBTOOLIZE not found
      exit 1
  }
  echo $LIBTOOLIZE...
  $LIBTOOLIZE --force --copy

  (command -v autoheader) < /dev/null > /dev/null 2>&1 || {
      echo autoheader not found
      exit 1
  }
  echo autoheader...
  autoheader

  (command -v automake) < /dev/null > /dev/null 2>&1 || {
      echo automake not found
      exit 1
  }
  echo automake...
  automake --gnu --add-missing --copy

  (command -v autoconf) < /dev/null > /dev/null 2>&1 || {
      echo autoconf not found
      exit 1
  }
  echo autoconf...
  autoconf
fi