autoconf
[Top][All Lists]
Advanced

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

Detecting the need for DOS pathnames


From: Paul Smith
Subject: Detecting the need for DOS pathnames
Date: Wed, 9 Apr 2003 01:16:22 -0400

I'm working with someone on a port of GNU make to OS/2.  They can
actually run configure on that system, which is nice.  One of the macros
I've used a lot is HAVE_DOS_PATHS, which tells GNU make whether a
pathname could have backslashes and especially drive specifiers (C:
etc.) in the pathname.

Is there a good way to write this test in autoconf?  The person I'm
working with suggests something like this:

  if test "$PATH_SEPARATOR" = ';'; then
    AC_DEFINE(HAVE_DOS_PATHS, 1
              [Define this if your system requires backslashes or drive specs 
in pathnames.])
  fi


Is this really the best way to handle this situation?  Seems a little
dodgy to me...

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>   HASMAT: HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.




reply via email to

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