(Not sure if this is more properly an autoconf question or a gettext question) I have a two autotools-based projects that use GNU gettext. The projects contain an intl subdirectory which is only used for the Windows build. For the native Linux builds, the programs use the external intl code (in glibc, I think) in accordance with guidelines to avoid duplicating system code. I have been editing configure.ac by hand when building for one platform or the other, as I haven't worked out a way to do this conditionally. I would like to do something like: AC_MSG_CHECKING([for native Win32]) case "$host" in *-*-mingw*) native_win32=yes ;; *) native_win32=no ;; esac AC_MSG_RESULT([$native_win32]) dnl NOTE - the following conditional does not work. if test $native_win32 = yes; then AM_GNU_GETTEXT else AM_GNU_GETTEXT([external]) fi However, the conditional doesn't work as I expected. When building for Linux, "make" fails with make[2]: Entering directory `/usr/local/src/git/tuxmath/build/po' *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version make[2]: *** [check-macro-version] Error 1 If I just use AM_GNU_GETTEXT([external]) without the conditional, it works fine. So I guess putting m4 macros inside of these conditionals must have some sort of side effects I don't understand. Thanks for any help, David Bruce _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf