root/trunk/m4/ensc_initrddir.m4
| Revision 1887, 1.3 kB (checked in by ensc, 4 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | dnl $Id$ |
| 2 | |
| 3 | dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> |
| 4 | dnl |
| 5 | dnl This program is free software; you can redistribute it and/or modify |
| 6 | dnl it under the terms of the GNU General Public License as published by |
| 7 | dnl the Free Software Foundation; version 2 of the License. |
| 8 | dnl |
| 9 | dnl This program is distributed in the hope that it will be useful, |
| 10 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | dnl GNU General Public License for more details. |
| 13 | dnl |
| 14 | dnl You should have received a copy of the GNU General Public License |
| 15 | dnl along with this program; if not, write to the Free Software |
| 16 | dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | |
| 18 | dnl Usage: ENSC_INITRDDIR(<variable>) |
| 19 | |
| 20 | AC_DEFUN([ENSC_INITRDDIR], |
| 21 | [ |
| 22 | AC_MSG_CHECKING([for initrddir]) |
| 23 | AC_ARG_WITH([initrddir], |
| 24 | [AC_HELP_STRING([--with-initrddir <DIR>], |
| 25 | [use <DIR> as directory for SysV init-files (default: $sysconfdir/init.d)])], |
| 26 | [case "$withval" in |
| 27 | yes|no) AC_MSG_ERROR(['$withval' is not a valid value for '--with-initrddir']);; |
| 28 | *) ensc_initrddir=$withval;; |
| 29 | esac], |
| 30 | [ensc_initrddir='$(sysconfdir)/init.d']) |
| 31 | |
| 32 | if test "$1"; then |
| 33 | $1=$ensc_initrddir |
| 34 | AC_SUBST($1) |
| 35 | fi |
| 36 | |
| 37 | AC_MSG_RESULT($ensc_initrddir) |
| 38 | ]) |
| 39 |
Note: See TracBrowser for help on using the browser.
