packages/catacomb2: Support assembler code on Android.
[termux-packages] / packages / cboard / configure.patch
1 diff -u -r ../cboard-0.7.3/configure ./configure
2 --- ../cboard-0.7.3/configure 2015-01-18 12:26:31.000000000 -0500
3 +++ ./configure 2015-07-11 06:51:31.092218872 -0400
4 @@ -11484,40 +11484,7 @@
5 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6
7 if test "$cross_compiling" = yes; then :
8 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10 -as_fn_error $? "cannot run test program while cross compiling
11 -See \`config.log' for more details" "$LINENO" 5; }
12 -else
13 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14 -/* end confdefs.h. */
15 -\
16 - #include <stdio.h>
17 - #include <sys/types.h>
18 - #include <sys/stat.h>
19 - #include <fcntl.h>
20 -
21 - int main()
22 - {
23 - int fd;
24 -
25 - if ((fd = open("/dev/ptmx", O_RDWR)) == -1)
26 - exit(1);
27 -
28 - if (ptsname(fd) == NULL)
29 - exit(1);
30 -
31 - exit(0);
32 - }
33 -
34 -_ACEOF
35 -if ac_fn_c_try_run "$LINENO"; then :
36 ptmx_works=yes
37 -else
38 - ptmx_works=no
39 -fi
40 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41 - conftest.$ac_objext conftest.beam conftest.$ac_ext
42 fi
43
44