Imported Upstream version 5.1.2
[platform/upstream/giflib.git] / autogen.sh
1 #!/bin/sh
2
3 # This script runs commands necessary to generate a Makefile for libgif.
4
5 echo "Warning: This script will run configure for you -- if you need to pass"
6 echo "  arguments to configure, please give them as arguments to this script."
7
8 srcdir=`dirname $0`
9 test -z "$srcdir" && srcdir=.
10
11 THEDIR="`pwd`"
12 cd $srcdir
13
14 aclocal
15 autoheader
16 case `uname` in Darwin*) glibtoolize --automake ;;
17   *) libtoolize --automake ;; esac
18 automake --add-missing
19 autoconf
20 automake
21
22 cd $THEDIR
23
24 $srcdir/configure $*
25
26 exit 0