fixed bbox calculation of characters without a path
[swftools.git] / m4 / backticks.m4
blob6c7b620696a6aa83c94ca5dd173ffa91f8a72ad7
1 AC_DEFUN([RFX_CHECK_SYSTEM_BACKTICKS],
3 AC_MSG_CHECKING([whether system() can handle command substitution])
4 AC_TRY_RUN([
5 #include "stdlib.h"
6 int main (int argc, char*argv[])
8     return system("test `touch config.tmp2`");
10 ], [OK=OK],,[CROSSCOMPILE=1])
12 if test "x${OK}" = "xOK";then
13     test -f config.tmp2 || OK=
16 if test "x${CROSSCOMPILE}" = "x1";then
17     OK=no;
19 if test "x${OK}" = "xOK";then
20 rm -f config.tmp2
21 AC_MSG_RESULT(yes)
22 SYSTEM_BACKTICKS=1
23 export SYSTEM_BACKTICKS
24 AC_DEFINE([SYSTEM_BACKTICKS], [1], [Define if system handles command substitution])
25 else
26 AC_MSG_RESULT(no)