gsocket: make this compile on Windows again
[platform/upstream/glib.git] / glib-gettextize.in
index 01ce883..35d01c1 100644 (file)
@@ -43,7 +43,16 @@ try_ln_s=:
 
 # Directory where the sources are stored.
 prefix=@prefix@
-gettext_dir=@prefix@/share/glib-2.0/gettext
+case `uname` in
+MINGW32*)
+    prefix="`dirname $0`/.."
+    ;;
+esac
+
+datadir=@datadir@
+datarootdir=@datarootdir@
+
+gettext_dir=$prefix/share/glib-2.0/gettext
 
 while test $# -gt 0; do
   case "$1" in
@@ -170,7 +179,7 @@ echo
 echo "Please add the files"
 echo "  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4"
 echo "  progtest.m4"
-echo "from the @datadir@/aclocal directory to your autoconf macro directory"
+echo "from the $datadir/aclocal directory to your autoconf macro directory"
 echo "or directly to your aclocal.m4 file."
 echo "You will also need config.guess and config.sub, which you can get from"
 echo "ftp://ftp.gnu.org/pub/gnu/config/."