[Orca-checkins] rev 187 - trunk/orca
blair at orcaware.com
blair at orcaware.com
Sat Jan 4 23:53:41 PST 2003
Author: blair
Date: 2003-01-04 23:53:31 -0800 (Sat, 04 Jan 2003)
New Revision: 187
Modified:
trunk/orca/configure.in
Log:
* configure.in:
Determine where the boot init.d directory on the system. Currently
/etc/rc.d/init.d and /etc/init.d are checked. This value is saved
in INIT_D_DIR and substituted via config.status.
Determine the directory that contains the boot rcX.d directories on
the system. Currently /etc/rc.d and /etc are checked if they
contain rc3.d. This value is saved in RCX_D_CONTAINING_DIR and
substituted via config.status.
Modified: trunk/orca/configure.in
==============================================================================
--- trunk/orca/configure.in (original)
+++ trunk/orca/configure.in 2003-01-04 23:53:40.000000000 -0800
@@ -439,6 +439,36 @@
AC_SUBST(INSTALL)
AC_SUBST(MKDIR)
+# Determine the appropriate init.d directory on the system.
+AC_MSG_CHECKING([where the boot init.d directory is])
+for dir in /etc/rc.d/init.d /etc/init.d; do
+ if test -d "$dir"; then
+ INIT_D_DIR="$dir"
+ break
+ fi
+done
+if test "$INIT_D_DIR"; then
+ AC_MSG_RESULT([$INIT_D_DIR])
+else
+ AC_MSG_RESULT([none found])
+fi
+AC_SUBST(INIT_D_DIR)
+
+# Determine the directory that contains the rcX.d directories.
+AC_MSG_CHECKING([which directory contains the boot rcX.d directories])
+for dir in /etc/rc.d/rc3.d /etc/rc3.d; do
+ if test -d "$dir"; then
+ RCX_D_CONTAINING_DIR="`dirname $dir`"
+ break
+ fi
+done
+if test "$RCX_D_CONTAINING_DIR"; then
+ AC_MSG_RESULT([$RCX_D_CONTAINING_DIR])
+else
+ AC_MSG_RESULT([none found])
+fi
+AC_SUBST(RCX_D_CONTAINING_DIR)
+
#--------------------------------------------------------------------
# Generate the Makefiles and shell scripts with the
# variable substitutions.
More information about the Orca-checkins
mailing list