source: trunk/essentials/sys-apps/grep/m4/dosfile.m4

Last change on this file was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 639 bytes
Line 
1# Check to see if we use dir\file name conventtion
2# If so, set macro HAVE_DOS_FILE_NAMES
3# Also set the macro HAVE_DOS_FILE_CONTENTS for now,
4# since don't know of a good way to independently check this.
5dnl AC_DOSFILE()
6AC_DEFUN(AC_DOSFILE,
7[
8 AC_CACHE_CHECK([for dos file convention], ac_cv_dosfile,
9 [if test -d ".\."; then
10 ac_cv_dosfile=yes
11 else
12 ac_cv_dosfile=no
13 fi
14 ])
15
16 if test $ac_cv_dosfile = yes; then
17 AC_DEFINE(HAVE_DOS_FILE_NAMES, 1, [Define if your OS uses backslashes as directory separators])
18 AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1,
19 [Define if text file lines end in CRLF.])
20 fi
21])
Note: See TracBrowser for help on using the repository browser.