X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=autogen.sh;h=b18261c583f3e1d378068fe00da4deb08cefde4f;hb=1bed4dd0d7eb38405278154d4351045e9e341bb1;hp=91d5034bdd3fc8a6f100a9a941ef5be167aa3fb2;hpb=6b695fef1a8e8913195acb215801046cfd77e878;p=platform%2Fupstream%2Fatk.git diff --git a/autogen.sh b/autogen.sh index 91d5034..b18261c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,45 +1,31 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. - -(test -f $srcdir/configure.ac) || { - echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory" - exit 1 -} - -PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"` - -if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then - echo "**Warning**: I am going to run \`configure' with no arguments." >&2 - echo "If you wish to pass any to it, please specify them on the" >&2 - echo \`$0\'" command line." >&2 - echo "" >&2 +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. + +olddir=`pwd` +cd "$srcdir" + +if test -z $GTKDOCIZE; then + echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." + rm -f gtk-doc.make + cat > gtk-doc.make <