home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / inetutils-1.2-src.tgz / tar.out / fsf / inetutils / paths < prev    next >
Text File  |  1996-09-28  |  4KB  |  97 lines

  1. # Paths for inetutils
  2. #
  3. # Copyright (C) 1996 Free Software Foundation, Inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. #
  19.  
  20. #
  21. # This file describes how to set various paths used by programs in inetutils.
  22. #
  23. # The rules that determine what a given PATH_FOO define expands to are:
  24. #  (1) If the user specifies --with-path-foo, that value is used.
  25. #  (2) If _PATH_FOO is defined in <paths.h>, that value is used.
  26. #  (3) The lines below are consulted.  They are whitespace-separated
  27. #      lists of things to try, in order.  The various sorts of entries are:
  28. #
  29. #       "value" -- If a file VALUE exists, use VALUE; if no default yet, set
  30. #              it to VALUE.  If VALUE begins with a make-variable of the
  31. #           form `$(NAME)' and a corresponding shell-variable $NAME
  32. #           exists at configure time, the value of $NAME is substituted
  33. #           for the $(NAME) for testing (but not subsitution) purposes.
  34. #    test:T    -- Use `test -T' to test for file existance
  35. #    x    -- The same as test:x
  36. #       d       -- The same as test:d
  37. #    c    -- The same as test:c
  38. #    b    -- The same as test:b
  39. #    <ach.h>:SYMBOL
  40. #        -- If SYMBOL is defined in <ack.h>, use SYM
  41. #       <ack.h> -- The same as <ack.h>:_PATH_FOO
  42. #       search:NAME:PATH
  43. #        -- Search for NAME in the colon-separated path PATH, and use
  44. #           the first thing found; if the `:PATH' is omitted, it
  45. #           uses the environment variable $PATH
  46. #    no    -- Set the default to `no' (even if there's already a default).
  47. #       FILE    -- The same as "FILE" (the quoted syntax only need be used if
  48. #           the contents could match one of the special syntaxes)
  49. #
  50. #      If cross-compiling then every file-existance test is made to fail
  51. #      (regardless of what exists on the compilation system), forcing
  52. #      defaults to be used for paths not defined in any header file.  A
  53. #      warning message is printed by configure in this case, as the user may
  54. #      have to define many paths by hand.
  55. #
  56. #      If none of the things in the list matches a real file, the default is
  57. #      used, or `no' if there is none (this means that no path may ever have
  58. #      the value `no', but that's probably not a severe problem).
  59. #
  60. #  (4) If the resulting value is the string `no', then PATH_FOO is never
  61. #      defined by any method (programs that use it should check that it's
  62. #      defined before using it).
  63. #
  64. # Programs wanting to use a particular path PATH_FOO should:
  65. #  (1) Add the make variable $(PATHDEF_FOO) to CPPFLAGS while compiling (this
  66. #      expands either into either -D... for the path variable, or nothing).
  67. #  (2) Include any appropriate headers to match <header.h> entries below
  68. #
  69.  
  70. PATH_BSHELL    x $(bindir)/sh search:sh
  71. PATH_CONSOLE    c /dev/console
  72. PATH_CP        x $(bindir)/cp search:cp
  73. PATH_DEFPATH    "$(bindir):/usr/bin:/bin"
  74. PATH_DEV    d /dev/
  75. # PATH_TTY_PFX is a prefix that's removed to get a tty device's name
  76. PATH_TTY_PFX    <paths.h>:_PATH_DEV d /dev/
  77. PATH_DEVNULL    c /dev/null
  78. PATH_FTPLOGINMESG /etc/motd
  79. PATH_FTPUSERS    $(sysconfdir)/ftpusers
  80. PATH_FTPWELCOME $(sysconfdir)/ftpwelcome
  81. PATH_INETDCONF    $(sysconfdir)/inetd.conf
  82. PATH_UTMP    <utmp.h> <utmp.h>:UTMP_FILE $(localstatedir)/run/utmp search:utmp:/var/run:/etc
  83. PATH_WTMP    <utmp.h> <utmp.h>:WTMP_FILE $(localstatedir)/log/wtmp search:wtmp:/var/log:/etc
  84. PATH_LASTLOG    <utmp.h> $(localstatedir)/log/lastlog search:lastlog:/var/log:/etc
  85. PATH_LOG    <syslog.h> /dev/log
  86. PATH_KLOG    <syslog.h> /dev/klog no
  87. PATH_LOGCONF    $(sysconfdir)/syslog.conf
  88. PATH_LOGIN    x $(bindir)/login search:login
  89. PATH_LOGPID    $(localstatedir)/run/syslog.pid
  90. PATH_NOLOGIN    $(sysconfdir)/nologin
  91. PATH_RLOGIN    x $(bindir)/rlogin
  92. PATH_RSH    x $(bindir)/rsh
  93. PATH_TMP    d /tmp
  94. PATH_TTY    c /dev/tty
  95. PATH_UUCICO    x $(libexecdir)/uucp/uucico search:uucp/uucico:/usr/libexec:/usr/lib:/usr/etc:/etc
  96.  
  97.