]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ion/ion3/cross.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ion / ion3 / cross.patch
1 --- tmp/work/arm-linux/ion3-0.0+ds20041104-r0/ion-3ds-20041104/configure.ac     2004-11-04 08:55:55.000000000 -0600
2 +++ ion-3ds-20041104/configure.ac       2004-12-28 13:47:05.000000000 -0600
3 @@ -74,26 +74,7 @@
4                                 the -i18n command line option])])
5  
6  if test "x$enable_Xutf8" = xyes; then
7 -    AC_MSG_CHECKING([for Xutf8*])
8 -    save_CFLAGS="$CFLAGS"
9 -    CFLAGS="$CFLAGS $X_CFLAGS"
10 -    AC_RUN_IFELSE([AC_LANG_SOURCE([[
11 -#include <X11/Xlib.h>
12 -
13 -int main()
14 -{
15 -#ifdef X_HAVE_UTF8_STRING
16 -    exit(0);
17 -#else
18 -    exit(1);
19 -#endif
20 -}
21 -                  ]])],
22 -                  [AC_MSG_RESULT([yes])
23 -                   _DCF_DE_USE_XUTF8="-DCF_DE_USE_XUTF8"],
24 -                  [AC_MSG_RESULT([no])
25 -                   exit 1])
26 -    CFLAGS="$save_CFLAGS"
27 +       AC_CHECK_DECLS ([ X_HAVE_UTF8_STRING ], _DCF_DE_USE_XUTF8="-DCF_DE_USE_XUTF8", , [[#include <X11/Xlib.h>]])
28  fi
29  
30  dnl }}}
31 @@ -263,7 +250,8 @@
32  ]])],
33                [AC_MSG_RESULT([yes])],
34                [AC_MSG_RESULT([no])
35 -               exit 1])
36 +               exit 1],
37 +              [AC_MSG_RESULT([crosscompiling, assuming yes])])
38  CFLAGS="$save_CFLAGS"
39  LIBS="$save_LIBS"
40  dnl }}}
41 @@ -334,7 +322,7 @@
42  AC_MSG_CHECKING([for va_copy])
43  save_CFLAGS="$CFLAGS"
44  CFLAGS="$CFLAGS $C99_SOURCE"
45 -AC_RUN_IFELSE([AC_LANG_SOURCE([[
46 +AC_LINK_IFELSE([AC_LANG_SOURCE([[
47  
48  #include <stdarg.h>
49  #include <stdlib.h>