summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-12-03 02:00:45 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-12-03 02:00:45 +0000
commit7bf2aecf9a8f3388a7b61f310fb361ccff4bb7d4 (patch)
tree999a54d8778fde670a7f4d76cf9e45ced4f8f0c1 /acinclude.m4
parent1b675f52db6d4595ee8f8faef718994896823106 (diff)
downloadvte-7bf2aecf9a8f3388a7b61f310fb361ccff4bb7d4.tar.gz
add AC_CHECK_CC_OPT from ac-archive. check for cfmakeraw, sys/select.h,
* acinclude.m4: add AC_CHECK_CC_OPT from ac-archive. * configure.in: check for cfmakeraw, sys/select.h, compiler support for -std= (#99698) * doc/boxes.txt: change reference to online Docbook reference to the charts at the Unicode web site. * src/dumpkeys.c: make a best-effort at making a terminal raw on systems where cfmakeraw() isn't available, from patch by Brian Cameron. Wait for up to 1/50 of a second for more bytes we'll consider to be part of a sequence. * src/pty.c(getpt): ensure that the new terminal is opened in non-blocking mode. * src/trie.c: use g_unichar_digit_value() instead of subtracting '0'. * src/vte.c: don't declare the xft_textitem member on non-Xft2 systems, because it uses an Xft2-specific type (#99685). * src/vteapp.c: add $pkgdatadir/fonts to the font path for use when testing.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m436
1 files changed, 35 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 66d11b62..55ed13d8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,3 +1,5 @@
+dnl From msw.
+dnl
dnl a macro to check for ability to create python extensions
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
dnl function also defines PYTHON_INCLUDES
@@ -21,4 +23,36 @@ $1],dnl
[AC_MSG_RESULT(not found)
$2])
CPPFLAGS="$save_CPPFLAGS"
-]) \ No newline at end of file
+])
+
+dnl From ac-archive.
+dnl
+dnl @synopsis AC_CHECK_CC_OPT(flag, cachevarname)
+dnl
+dnl AC_CHECK_CC_OPT(-fvomit-frame,vomitframe)
+dnl would show a message as like
+dnl "checking wether gcc accepts -fvomit-frame ... no"
+dnl and sets the shell-variable $vomitframe to either "-fvomit-frame"
+dnl or (in this case) just a simple "". In many cases you would then call
+dnl AC_SUBST(_fvomit_frame_,$vomitframe) to create a substitution that
+dnl could be fed as "CFLAGS = @_funsigned_char_@ @_fvomit_frame_@
+dnl
+dnl in consequence this function is much more general than their
+dnl specific counterparts like ac_cxx_rtti.m4 that will test for
+dnl -fno-rtti -fno-exceptions
+dnl
+dnl @version $Id$
+dml @author Guido Draheim <guidod@gmx.de>
+
+AC_DEFUN(AC_CHECK_CC_OPT,
+[AC_CACHE_CHECK(whether ${CC-cc} accepts [$1], [$2],
+[AC_SUBST($2)
+echo 'void f(){}' > conftest.c
+if test -z "`${CC-cc} -c $1 conftest.c 2>&1`"; then
+ $2="$1"
+else
+ $2=""
+fi
+rm -f conftest*
+])])
+