root/gtkimageviewmm/autogen.sh

Revision 512, 1.2 kB (checked in by andreas, 5 years ago)

initial import
-> the example may not build at the moment...will to be fixed with next commit

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2 MAKE=`which gnumake`
3 if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
4 if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
5 HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
6
7 if test "$HAVE_GNU_MAKE" != "1"; then
8 echo !!!! ERROR: You need GNU make to build from cvs!;
9 echo !!!! $MAKE is not GNU make;
10 exit 1;
11 fi
12
13 echo Found GNU Make at $MAKE ... good.
14
15 srcdir=`dirname $0`
16 test -z "$srcdir" && srcdir=.
17
18 PKG_NAME="gtkimageviewmm"
19
20 (test -f $srcdir/configure.in \
21   && test -d $srcdir/gtkimageview/src \
22   && test -d $srcdir/gtkimageview/gtkimageviewmm) || {
23     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
24     echo " top-level $PKG_NAME directory"
25     exit 1
26 }
27
28
29
30 echo "Adding libtools."
31 libtoolize --automake
32
33 echo "Building macros."
34 aclocal -I scripts $ACLOCAL_FLAGS
35
36 #echo "Building config header."
37 #autoheader
38
39 echo "Building makefiles."
40 automake   --add-missing
41
42 echo "Building configure."
43 autoconf
44
45 rm -f config.cache
46
47 if test -z "$AUTOGEN_SUBDIR_MODE"; then
48
49     echo "Running configure."
50     ./configure --enable-maintainer-mode "$@"
51     echo
52     echo 'run "make"'
53     echo
54 else
55     echo
56     echo 'run "./configure ; make"'
57     echo
58 fi
59
Note: See TracBrowser for help on using the browser.