termux-packages/packages/cboard/configure.patch

45 lines
1.1 KiB
Diff

diff -u -r ../cboard-0.7.3/configure ./configure
--- ../cboard-0.7.3/configure 2015-01-18 12:26:31.000000000 -0500
+++ ./configure 2015-07-11 06:51:31.092218872 -0400
@@ -11484,40 +11484,7 @@
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-\
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
-
- int main()
- {
- int fd;
-
- if ((fd = open("/dev/ptmx", O_RDWR)) == -1)
- exit(1);
-
- if (ptsname(fd) == NULL)
- exit(1);
-
- exit(0);
- }
-
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
ptmx_works=yes
-else
- ptmx_works=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
fi