fixed buffer overflow
[swftools.git] / m4 / lowercase.m4
blob190539b82d119b91eb969473d49442682facee5c
1 AC_DEFUN([RFX_CHECK_LOWERCASE_UPPERCASE],
3 AC_MSG_CHECKING([whether the filesystem normalizes file names])
5 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
7 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
8     AC_MSG_RESULT(yes)
9     AC_DEFINE([LOWERCASE_UPPERCASE], [1], [Define if the file system is case invariant])
10 else
11     AC_MSG_RESULT(no)
14 rm -f __abcdefghijklmnopqrstuvwxyz.txt
15 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt