diff --git a/CHANGES b/CHANGES index 54fdc36..99f4ee2 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,10 @@ corrections: configure option --enable-msglevel did not work with numbers + The autoconf mechanism for determining SHIFT_OFFSET did not work when + cross compiling. + Thanks to Max Freisinger from Gentoo for seinding a patch. + git: Added missing Config/Makefile.DragonFly-2-8-2, Config/config.DragonFly-2-8-2.h diff --git a/configure.in b/configure.in index 5115e5e..82b8e68 100644 --- a/configure.in +++ b/configure.in @@ -998,11 +998,11 @@ AC_CACHE_VAL(ac_cv_ispeed_offset, ], [ac_cv_ispeed_offset=`cat $conftestspeedoff`], [ac_cv_ispeed_offset=-1], - [ac_cv_ispeed_offset=-1] #! + [ac_cv_ispeed_offset="((unsigned long)&((struct termios *)0)->c_ispeed / sizeof(speed_t))"] )]) LIBS="$LIBS1" AC_MSG_RESULT($ac_cv_ispeed_offset) - if test $ac_cv_ispeed_offset -ge 0; then + if test "$ac_cv_ispeed_offset" != -1; then AC_DEFINE_UNQUOTED(ISPEED_OFFSET, $ac_cv_ispeed_offset) fi fi