source: trunk/configure.in @ 116

Last change on this file since 116 was 116, checked in by bas, 15 years ago

configure.in:

  • Added examples/pxeconfigd.xinetd.in
  • Now we generate pxeconfigd.xinetd with the right prefix. So we can still use it for our debian package
  • Property svn:keywords set to Id URL
File size: 1.3 KB
Line 
1#
2# Author: Bas van der Vlies <basv@sara.nl>
3# Desc. : Simple configure script for pxeconfig package
4# SVN INFO:
5#       $Id: configure.in 116 2008-02-06 16:08:54Z bas $
6#
7#
8AC_INIT(pxeconfig.in)
9AC_SUBST(prefix)
10AC_SUBST(exec_prefix)
11AC_SUBST(pyexecdir)
12AC_SUBST(sysconfdir)
13AC_SUBST(sbindir)
14
15#DEBUG=0
16
17AM_PATH_PYTHON
18AC_PROG_GCC_TRADITIONAL
19
20if test "x$DEBUG" = "x";then
21  DEBUG=0
22fi
23AC_SUBST(DEBUG)
24
25# Now a user can specify the TRAC user
26#
27#AC_ARG_WITH(trac_user,
28#[
29#  --with-trac_user=USER    Specify the name of the user that trac use,
30#                          default=www-data],
31#
32#  [case "${withval}" in
33#        *) trac_user="${withval}" ;;
34#  esac],
35#
36#  [trac_user="www-data"]
37##)dnl           
38
39
40dnl ##### Path to pxeconfig.conf
41dnl This ugly kludge to get the sysconfdir path is needed because
42dnl autoconf doesn't actually set the prefix variable until later.
43if test "$sysconfdir" = '${prefix}/etc'; then
44  if test "x$prefix" = xNONE; then
45    pxeconfig_conf="$ac_default_prefix/etc/pxeconfig.conf"
46  else
47    pxeconfig_conf="$prefix/etc/pxeconfig.conf"
48  fi
49else
50  pxeconfig_conf="$sysconfdir/pxeconfig.conf"
51fi
52AC_DEFINE_UNQUOTED(SYSTEM_PXECONFIG_CONF, "$pxeconfig_conf",
53                   [Full path for the system-wide pxeconfig_conf.conf file.])
54
55AC_SUBST(pxeconfig_conf)
56AC_SUBST(SYSTEM_PXECONFIG_CONF)
57
58
59AC_OUTPUT(
60        Makefile
61        pxeconfig
62        pxeconfigd
63        hexls
64        examples/pxeconfigd.xinetd
65        )
Note: See TracBrowser for help on using the repository browser.