~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to BUILD/autorun.sh

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Create MySQL autotools infrastructure
 
3
 
 
4
die() { echo "$@"; exit 1; }
 
5
 
 
6
# Handle "glibtoolize" (e.g., for native OS X autotools) as another
 
7
# name for "libtoolize". Use the first one, either name, found in PATH.
 
8
LIBTOOLIZE=libtoolize  # Default
 
9
IFS="${IFS=   }"; save_ifs="$IFS"; IFS=':'
 
10
for dir in $PATH
 
11
do
 
12
  if test -x $dir/glibtoolize
 
13
  then
 
14
    LIBTOOLIZE=glibtoolize
 
15
    break
 
16
  elif test -x $dir/libtoolize
 
17
  then
 
18
    break
 
19
  fi
 
20
done
 
21
IFS="$save_ifs"
 
22
 
 
23
aclocal || die "Can't execute aclocal" 
 
24
autoheader || die "Can't execute autoheader"
 
25
# --force means overwrite ltmain.sh script if it already exists 
 
26
$LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize"
 
27
  
 
28
# --add-missing instructs automake to install missing auxiliary files
 
29
# and --force to overwrite them if they already exist
 
30
automake --add-missing --force  --copy || die "Can't execute automake"
 
31
autoconf || die "Can't execute autoconf"