bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tim-3] Improved DJGPP support in src/files.c


From: Tim Van Holder
Subject: Re: [tim-3] Improved DJGPP support in src/files.c
Date: Thu, 17 Jan 2002 16:33:12 +0100

> Akim Demaille <address@hidden> wrote:
> > Paul, Jim,
> >
> > Any problem with moving jm_AC_DOS into Autoconf as AC_SYS_DOS?
> > Or AC_SYS_FILENAMES?  Or AS_SYS_ISSLASH etc.  I don't think 
> referring
> > to DOS here is right, we ought to refer to the feature we 
> look for/we
> > define.

perhaps 'AC_DOS_BASED_FILESYSTEM' (cfr the HAVE_DOS_BASED_FILESYSTEM
macro used in gcc and/or binutils (I forget which)).

>         [#if !defined _WIN32 && !defined __WIN32__ && 
> !defined __MSDOS__
> neither MSDOS nor Windows
> #endif],

I agree; this is not the best test for filesystem features.

>   FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX

This may be hard; there's no real guarantee that any drives exist.
Still, something like

dnl Skip A and B to avoid delays caused by floppy access
for DRIVELETTER in C D E ... Z; do
  test -d "$DRIVELETTER:/." || continue
  ac_filesys_accepts_drivespec=true
  break;
done

should work (though it may cause delays if the first available
drive letters happen to be floppy, network or CD-ROM drives).

>   FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR

Something like:

  ac_filesys_slash_is_dirsep=true
  AS_TMPDIR(slash)
  cd "$tmp"
  mkdir a
  cd a
  mkdir b
  cd b
  test -d '..\..\a' && test -d '..\b' &&
ac_filesys_backslash_is_dirsep=true
  test -d '../../a' && test -d '../b' ||
ac_filesys_slash_is_dirsep=false
  rm -rf "$tmp"

perhaps?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]