I'm building the gettext tools for Windows under Cygwin [1]
I call the gettext configure command with these options:
CC='i686-w64-mingw32-gcc'
CXX='i686-w64-mingw32-g++'
LD='i686-w64-mingw32-ld'
CPPFLAGS='-I/installed/include -I/usr/i686-w64-mingw32/sys-root/mingw/include -D__USE_MINGW_ANSI_STDIO=0 -g0 -O2 '
LDFLAGS='-L/installed/lib -L/usr/i686-w64-mingw32/sys-root/mingw/lib'
ac_cv_func__set_invalid_parameter_handler=no
gl_cv_header_working_stdint_h=no
--host=i686-w64-mingw32
--prefix=/installed
--enable-relocatable
--config-cache
--disable-dependency-tracking
--enable-nls
--disable-rpath
--disable-acl
--enable-threads=windows
--disable-java
--disable-native-java
--disable-csharp
--disable-openmp
--disable-curses
--without-emacs
--with-included-libxml
--without-bzip2
--without-xz
--enable-shared
--disable-static
Everything gets compiled and installed succesfully in the /installed directory of cygwin.
But when I move the files to another location, the gettext tools still try to load the ,mo file from the original installation path.
For example, when I move the tools to
C:\Program Files (x86)\gettext-iconv
and I execute
C:\Program Files (x86)\gettext-iconv\bin\xgettext.exe --help
the program still tries to load
C:\cygwin\installed\share\locale\<LANGUAGE>\LC_MESSAGES\gettext-tools.mo
Am I missing something?