Home | History | Annotate | Download | only in patches
      1 --- ekiga-2.0.2/autogen.sh.ori	2006-06-09 13:19:10.038187000 +0800
      2 +++ ekiga-2.0.2/autogen.sh	2006-06-09 13:19:03.085231000 +0800
      3 @@ -0,0 +1,46 @@
      4 +#!/bin/sh
      5 +# Run this to generate all the initial makefiles, etc.
      6 +
      7 +srcdir=`dirname $0`
      8 +test -z "$srcdir" && srcdir=.
      9 +
     10 +REQUIRED_AUTOMAKE_VERSION=1.8
     11 +
     12 +PKG_NAME="ekiga"
     13 +
     14 +(test -f $srcdir/configure.in \
     15 +  && test -f $srcdir/autogen.sh \
     16 +  && test -d $srcdir) || {
     17 +    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
     18 +    echo " top-level $PKG_NAME directory"
     19 +    exit 1
     20 +}
     21 +
     22 +DIE=0
     23 +
     24 +
     25 +# This is a bit complicated here since we can't use gnome-config yet.
     26 +# It'll be easier after switching to pkg-config since we can then
     27 +# use pkg-config to find the gnome-autogen.sh script.
     28 +
     29 +gnome_autogen=
     30 +gnome_datadir=
     31 +
     32 +ifs_save="$IFS"; IFS=":"
     33 +for dir in $PATH ; do
     34 +  test -z "$dir" && dir=.
     35 +  if test -f $dir/gnome-autogen.sh ; then
     36 +    gnome_autogen="$dir/gnome-autogen.sh"
     37 +    gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
     38 +    break
     39 +  fi
     40 +done
     41 +IFS="$ifs_save"
     42 +
     43 +if test -z "$gnome_autogen" ; then
     44 +  echo "You need to install the gnome-common module and make"
     45 +  echo "sure the gnome-autogen.sh script is in your \$PATH."
     46 +  exit 1
     47 +fi
     48 +
     49 +ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I /usr/share/aclocal" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen
     50