]> git.pld-linux.org Git - projects/rc-scripts.git/blame - configure.ac
Don't set libdir - use value from configure script.
[projects/rc-scripts.git] / configure.ac
CommitLineData
9ccfa537 1dnl $Id$
7e04fe0e 2
fe0a5b59 3AC_INIT(["rc-scripts"], [0.4.0.6], [pld-rc-scripts@pld-linux.org], [rc-scripts])
bea191b3 4AM_INIT_AUTOMAKE
2c883f5e 5
05a11ced 6ALL_LINGUAS="pl de"
763b88c2
AM
7
8echo -n "Finding shell scripts"
9SHSCRIPTS=""
27c70f0e 10for shfile in $(find ${srcdir}/rc.d ${srcdir}/sysconfig -type f); do
763b88c2 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"
5d3bb684 32
dcd32750 33dnl i18n support
5d3bb684
AF
34AC_PATH_PROGS(MSGMERGE, msgmerge)
35AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
36
dcd32750
AF
37CATALOGS=
38POTFILES=
39for lang in $ALL_LINGUAS; do
40 CATALOGS="$CATALOGS $lang.gmo"
41 POTFILES="$POTFILES $lang.po"
42done
7e04fe0e 43
dcd32750 44POTSRC=
2c883f5e 45for src in $SHSCRIPTS; do
dcd32750
AF
46 POTSRC="$POTSRC \$(top_srcdir)/$src"
47done
48AC_ARG_WITH(localedir,
49 [ --with-localedir=PATH specify where the locale stuff should go ])
50
51if test "x$LOCALEDIR" = "x"; then
52 if test "x$with_localedir" != "x"; then
53 LOCALEDIR=$with_localedir
54 else
55 LOCALEDIR='$(prefix)/share/locale'
56 fi
57fi
58
59localedir=$LOCALEDIR
60gnulocaledir=$LOCALEDIR
61
62if test "`eval echo $sysconfdir`" = "NONE/etc"; then
63 defaultdir="/usr/local/etc"
64else
65 defaultdir="`eval echo $sysconfdir`"
66fi
67
68dnl Output
69AC_SUBST(BASHSCRIPTS)
70AC_SUBST(CATALOGS)
71AC_SUBST(POTFILES)
72AC_SUBST(POTSRC)
73AC_SUBST(localedir)
74AC_SUBST(gnulocaledir)
75
7e04fe0e 76AC_SUBST(pppdir)
77AC_SUBST(networkscriptsdir)
78AC_SUBST(sysconfigdir)
8dbd5412 79AC_SUBST(updir)
80AC_SUBST(downdir)
7e04fe0e 81AC_SUBST(rcdir)
82AC_SUBST(docdir)
7e04fe0e 83
763b88c2 84AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile \
8dbd5412 85 ppp/Makefile \
763b88c2 86 isapnp/Makefile \
7e04fe0e 87 sysconfig/Makefile \
763b88c2 88 sysconfig/hwprofiles/Makefile \
7e04fe0e 89 sysconfig/network-scripts/Makefile \
ca263bb1
AF
90 sysconfig/interfaces/Makefile \
91 sysconfig/interfaces/data/Makefile \
8dbd5412 92 sysconfig/interfaces/up.d/Makefile \
93 sysconfig/interfaces/up.d/all/Makefile \
94 sysconfig/interfaces/up.d/ip/Makefile \
95 sysconfig/interfaces/up.d/ipx/Makefile \
96 sysconfig/interfaces/up.d/ppp/Makefile \
97 sysconfig/interfaces/up.d/tnl/Makefile \
98 sysconfig/interfaces/down.d/Makefile \
99 sysconfig/interfaces/down.d/all/Makefile \
100 sysconfig/interfaces/down.d/ip/Makefile \
101 sysconfig/interfaces/down.d/ipx/Makefile \
102 sysconfig/interfaces/down.d/ppp/Makefile \
103 sysconfig/interfaces/down.d/tnl/Makefile \
36ddc8d8 104 rc.d/Makefile rc.d/init.d/Makefile \
dcd32750 105 po/Makefile \
763b88c2
AM
106 rc-scripts.spec])
107AC_OUTPUT
This page took 0.115836 seconds and 4 git commands to generate.