File: bootstrap

package info (click to toggle)
libtool 1.4.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,304 kB
  • ctags: 831
  • sloc: sh: 8,394; ansic: 3,706; makefile: 415
file content (38 lines) | stat: -rwxr-xr-x 795 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
#! /bin/sh

# helps bootstrapping libtool, when checked out from CVS
# requires GNU autoconf and GNU automake

find . \( -name autom4te.cache -o -name libtool \) -exec rm -r {} \;

file=Makefile.in

: ${ACLOCAL=aclocal}
: ${AUTOMAKE=automake}
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}

rm -f acinclude.m4
ln -s libtool.m4 acinclude.m4
# fake the libtool scripts
touch ltmain.sh
touch libtoolize
$ACLOCAL
$AUTOMAKE --gnu --add-missing --copy
$AUTOCONF

for sub in libltdl demo depdemo mdemo cdemo; do
  cd $sub
  rm -f acinclude.m4 Makefile
  cat ../libtool.m4 > acinclude.m4
  test "$sub" = libltdl && cat ../ltdl.m4 >> acinclude.m4
  $ACLOCAL
  test "$sub" = libltdl && $AUTOHEADER
  $AUTOMAKE --gnits --add-missing
  $AUTOCONF
  cd ..
done

rm -f ltmain.sh libtoolize Makefile

exit 0