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