2 # Run this to generate all the initial makefiles, etc.
3 # This was lifted from the Gimp, and adapted slightly by
8 test -z "$srcdir" && srcdir=.
9 test "$srcdir" = "." && srcdir=`pwd`
13 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo "You must have autoconf installed to compile $PROJECT."
16 echo "Download the appropriate package for your distribution,"
17 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
21 (libtool --version) < /dev/null > /dev/null 2>&1 || {
23 echo "You must have libtool installed to compile $PROJECT."
24 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
25 echo "(or a newer version if it is available)"
29 (automake --version) < /dev/null > /dev/null 2>&1 || {
31 echo "You must have automake installed to compile $PROJECT."
32 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
33 echo "(or a newer version if it is available)"
37 if test "$DIE" -eq 1; then
41 test -f libexif/exif.h || {
42 echo "You must run this script in the top-level gphoto2 directory"
47 echo "I am going to run ./configure with no arguments - if you wish "
48 echo "to pass any to it, please specify them on the $0 command line."
53 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
56 echo "Running aclocal $ACLOCAL_FLAGS"
57 aclocal $ACLOCAL_FLAGS
58 echo "Running autoheader"
60 echo "Running automake --add-missing --gnu $am_opt"
61 automake --add-missing --gnu $am_opt
62 echo "Running autoconf"
64 echo "Running ./configure"
68 echo "Now type 'make' to compile $PROJECT."