]> git.pld-linux.org Git - projects/rc-scripts.git/blame - configure.in
- cleanups in sysinit + fix for shutting down bridge
[projects/rc-scripts.git] / configure.in
CommitLineData
7824432b 1dnl $Id: configure.in,v 1.31.2.2 2001/09/30 10:19:34 misiek Exp $
7e04fe0e 2PACKAGE=rc-scripts
a04d924e 3VERSION=0.4.0
7e04fe0e 4
7824432b 5AC_INIT($PACKAGE, $VERSION, [pld-rc-scripts@pld.org.pl])
2c883f5e 6
7824432b
AM
7ALL_LINGUAS="pl"
8
9echo -n "Finding shell scripts"
10SHSCRIPTS=""
11for shfile in $(find rc.d sysconfig -type f); do
12 echo -n "."
13 if (file ${shfile} | grep -q 'shell script'); then
14 SHSCRIPTS="${SHSCRIPTS} ${shfile}"
15 fi
16done
17echo "done"
7e04fe0e 18
19dnl Checks for programs.
7824432b 20AC_ARG_PROGRAM
7e04fe0e 21AC_PROG_CC
22AC_ISC_POSIX
23AC_PROG_INSTALL
24AC_PROG_LN_S
25AC_PROG_MAKE_SET
26
27pppdir='${sysconfdir}/ppp'
7e04fe0e 28sysconfigdir='${sysconfdir}/sysconfig'
8dbd5412 29updir='${sysconfigdir}/interfaces/up.d'
30downdir='${sysconfigdir}/interfaces/down.d'
16742ce6 31networkscriptsdir='${sysconfigdir}/network-scripts'
7e04fe0e 32rcdir='${sysconfdir}/rc.d'
33docdir="${prefix}/doc/$PACKAGE-$VERSION"
85a71060 34libdir="${exec_prefix}/lib"
5d3bb684 35
dcd32750 36dnl i18n support
5d3bb684
AF
37AC_PATH_PROGS(MSGMERGE, msgmerge)
38AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
39
dcd32750
AF
40CATALOGS=
41POTFILES=
42for lang in $ALL_LINGUAS; do
43 CATALOGS="$CATALOGS $lang.gmo"
44 POTFILES="$POTFILES $lang.po"
45done
7e04fe0e 46
dcd32750 47POTSRC=
2c883f5e 48for src in $SHSCRIPTS; do
dcd32750
AF
49 POTSRC="$POTSRC \$(top_srcdir)/$src"
50done
51AC_ARG_WITH(localedir,
52 [ --with-localedir=PATH specify where the locale stuff should go ])
53
54if test "x$LOCALEDIR" = "x"; then
55 if test "x$with_localedir" != "x"; then
56 LOCALEDIR=$with_localedir
57 else
58 LOCALEDIR='$(prefix)/share/locale'
59 fi
60fi
61
62localedir=$LOCALEDIR
63gnulocaledir=$LOCALEDIR
64
65if test "`eval echo $sysconfdir`" = "NONE/etc"; then
66 defaultdir="/usr/local/etc"
67else
68 defaultdir="`eval echo $sysconfdir`"
69fi
70
71dnl Output
72AC_SUBST(BASHSCRIPTS)
73AC_SUBST(CATALOGS)
74AC_SUBST(POTFILES)
75AC_SUBST(POTSRC)
76AC_SUBST(localedir)
77AC_SUBST(gnulocaledir)
78
7e04fe0e 79AC_SUBST(pppdir)
80AC_SUBST(networkscriptsdir)
81AC_SUBST(sysconfigdir)
8dbd5412 82AC_SUBST(updir)
83AC_SUBST(downdir)
7e04fe0e 84AC_SUBST(rcdir)
85AC_SUBST(docdir)
86AC_SUBST(libdir)
87
7824432b 88AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile \
8dbd5412 89 ppp/Makefile \
7824432b 90 isapnp/Makefile \
7e04fe0e 91 sysconfig/Makefile \
7824432b 92 sysconfig/hwprofiles/Makefile \
7e04fe0e 93 sysconfig/network-scripts/Makefile \
ca263bb1
AF
94 sysconfig/interfaces/Makefile \
95 sysconfig/interfaces/data/Makefile \
8dbd5412 96 sysconfig/interfaces/up.d/Makefile \
97 sysconfig/interfaces/up.d/all/Makefile \
98 sysconfig/interfaces/up.d/ip/Makefile \
99 sysconfig/interfaces/up.d/ipx/Makefile \
100 sysconfig/interfaces/up.d/ppp/Makefile \
101 sysconfig/interfaces/up.d/tnl/Makefile \
102 sysconfig/interfaces/down.d/Makefile \
103 sysconfig/interfaces/down.d/all/Makefile \
104 sysconfig/interfaces/down.d/ip/Makefile \
105 sysconfig/interfaces/down.d/ipx/Makefile \
106 sysconfig/interfaces/down.d/ppp/Makefile \
107 sysconfig/interfaces/down.d/tnl/Makefile \
36ddc8d8 108 rc.d/Makefile rc.d/init.d/Makefile \
dcd32750 109 po/Makefile \
7824432b
AM
110 rc-scripts.spec])
111AC_OUTPUT
This page took 0.265659 seconds and 4 git commands to generate.