summaryrefslogtreecommitdiff
path: root/m4/dosfile.m4
blob: 48184cf038b169b4544ee152e3fb457cfbf8d866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Check to see if we use dir\file name conventtion
# If so, set macro HAVE_DOS_FILE_NAMES
# Also set the macro HAVE_DOS_FILE_CONTENTS for now,
# since don't know of a good way to independently check this.
dnl AC_DOSFILE()
AC_DEFUN(AC_DOSFILE,
[
  AC_CACHE_CHECK([for dos file convention], ac_cv_dosfile,
    [if test -d ".\."; then
       ac_cv_dosfile=yes
    else
       ac_cv_dosfile=no
    fi
    ])

  if test $ac_cv_dosfile = yes; then
    AC_DEFINE(HAVE_DOS_FILE_NAMES)
    AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1,
      [Define if text file lines end in CRLF.])
  fi
])