Changeset 38 for server


Ignore:
Timestamp:
Nov 29, 2006, 3:00:10 AM (17 years ago)
Author:
jbarnold
Message:
improved package autoconf macros
Location:
server/common/oursrc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/lockeradm/configure.in

    r36 r38  
    22
    33AC_PROG_CC
     4
     5AC_DEFUN(REQUIRE_PATH,[
     6AC_SUBST($1_path)
     7if test "[$]$1_path" = ""; then
     8        AC_ERROR(Cannot find $1)
     9fi
     10])
     11
     12AC_DEFUN(LOCATE,[
     13AC_PATH_PROG($1_path, $1)
     14REQUIRE_PATH($1)
     15])
    416
    517dnl Needed by admof.in
     
    1123  fi
    1224])
    13 AC_SUBST(fs_path)
    14 if test "$fs_path" = ""; then
    15         AC_ERROR(Cannot find fs)
    16 fi
     25REQUIRE_PATH(fs)
    1726
    1827AC_ARG_WITH(pts,
     
    2231  fi
    2332])
    24 AC_SUBST(pts_path)
    25 if test "$pts_path" = ""; then
    26         AC_ERROR(Cannot find pts)
    27 fi
     33REQUIRE_PATH(pts)
    2834
    2935dnl Needed by signup-scripts-backend.in
    3036
    31 AC_PATH_PROG(ls_path, ls)
    32 AC_SUBST(ls_path)
    33 if test "$ls_path" = ""; then
    34         AC_ERROR(Cannot find ls)
    35 fi
    36 AC_PATH_PROG(grep_path, grep)
    37 AC_SUBST(grep_path)
    38 if test "$grep_path" = ""; then
    39         AC_ERROR(Cannot find grep)
    40 fi
    41 
    42 AC_PATH_PROG(sudo_path, sudo)
    43 AC_SUBST(sudo_path)
    44 if test "$sudo_path" = ""; then
    45         AC_ERROR(Cannot find sudo)
    46 fi
    47 AC_PATH_PROG(useradd_path, useradd)
    48 AC_SUBST(useradd_path)
    49 if test "$useradd_path" = ""; then
    50         AC_ERROR(Cannot find useradd)
    51 fi
    52 AC_PATH_PROG(groupadd_path, groupadd)
    53 AC_SUBST(groupadd_path)
    54 if test "$groupadd_path" = ""; then
    55         AC_ERROR(Cannot find groupadd)
    56 fi
    57 
    58 AC_PATH_PROG(setquota_path, setquota)
    59 AC_SUBST(setquota_path)
    60 if test "$setquota_path" = ""; then
    61         AC_ERROR(Cannot find setquota)
    62 fi
    63 
    64 AC_PATH_PROG(hesinfo_path, hesinfo)
    65 AC_SUBST(hesinfo_path)
    66 if test "$hesinfo_path" = ""; then
    67         AC_ERROR(Cannot find hesinfo)
    68 fi
     37LOCATE(ls)
     38LOCATE(grep)
     39LOCATE(sudo)
     40LOCATE(useradd)
     41LOCATE(groupadd)
     42LOCATE(setquota)
     43LOCATE(hesinfo)
    6944
    7045dnl Needed by modbash.in
    7146
    72 AC_PATH_PROG(bash_path, bash)
    73 AC_SUBST(bash_path)
    74 if test "$bash_path" = ""; then
    75         AC_ERROR(Cannot find bash)
    76 fi
     47LOCATE(bash)
    7748
    7849AC_OUTPUT(Makefile)
  • server/common/oursrc/tokensys/configure.in

    r36 r38  
    11AC_INIT()
     2
     3AC_DEFUN(REQUIRE_PATH,[
     4AC_SUBST($1_path)
     5if test "[$]$1_path" = ""; then
     6        AC_ERROR(Cannot find $1)
     7fi
     8])
    29
    310AC_ARG_WITH(kinit,
     
    714  fi
    815])
    9 AC_SUBST(kinit_path)
    10 if test "$kinit_path" = ""; then
    11         AC_ERROR(Cannot find kinit)
    12 fi
     16REQUIRE_PATH(kinit)
    1317
    1418AC_ARG_WITH(aklog,
     
    1822  fi
    1923])
    20 AC_SUBST(aklog_path)
    21 if test "$aklog_path" = ""; then
    22         AC_ERROR(Cannot find aklog)
    23 fi
     24REQUIRE_PATH(aklog)
    2425
    2526AC_OUTPUT(Makefile)
Note: See TracChangeset for help on using the changeset viewer.