diff options
author | Carlos Perelló Marín <carlos@gnome-db.org> | 2001-09-02 07:59:26 +0000 |
---|---|---|
committer | Carlos Perelló MarÃn <carlos@src.gnome.org> | 2001-09-02 07:59:26 +0000 |
commit | 5edecc7430a87a73cf63951ba98f25cb3a6fea48 (patch) | |
tree | 8184e0cea89b97077a7c83d1bfd221d0a3d332f6 /autogen.sh | |
parent | 7c29c80dadff6557627c2be1563d2fcc93d9e73e (diff) | |
download | glade-5edecc7430a87a73cf63951ba98f25cb3a6fea48.tar.gz |
Modified to use the new GNOME 2.0 config stuff. Removed a dup "#include
2001-08-29 Carlos Perelló Marín <carlos@gnome-db.org>
* autogen.sh:
* configure.in:
* Makefile.am: Modified to use the new GNOME 2.0 config stuff.
* src/glade.h: Removed a dup "#include <libintl.h>"
* src/main.c: Moved the NLS stuff to be the first at main()
and added setlocale (LC_ALL, ""); before the bindtextdomain call
Now the l10n works!!!! Thanks Martin for your comments ;-)
* src/Makefile.am: popt is checked at configure.in
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 35 |
1 files changed, 31 insertions, 4 deletions
@@ -4,12 +4,39 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. -PKG_NAME="the package." +PKG_NAME="glade2" -(test -f $srcdir/configure.in) || { +(test -f $srcdir/configure.in \ + && test -f $srcdir/autogen.sh) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level directory" + echo " top-level $PKG_NAME directory" exit 1 } -. $srcdir/macros/autogen.sh +DIE=0 + +# This is a bit complicated here since we can't use gnome-config yet. +# It'll be easier after switching to pkg-config since we can then +# use pkg-config to find the gnome-autogen.sh script. + +gnome_autogen= +gnome_datadir= + +ifs_save="$IFS"; IFS=":" +for dir in $PATH ; do + test -z "$dir" && dir=. + if test -f $dir/gnome-autogen.sh ; then + gnome_autogen="$dir/gnome-autogen.sh" + gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'` + break + fi +done +IFS="$ifs_save" + +if test -z "$gnome_autogen" ; then + echo "You need to install the gnome-common module and make" + echo "sure the gnome-autogen.sh script is in your \$PATH." + exit 1 +fi + +GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen |