vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

ensc_initrddir.m4 (1368B)


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