dnl $Id: configure.in,v 1.13 1999/08/31 23:12:44 wiget Exp $ AC_INIT() PACKAGE=rc-scripts VERSION=0.0.9 ALL_LINGUAS="pl" AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) dnl Checks for programs. AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET pppdir='${sysconfdir}/ppp' sysconfigdir='${sysconfdir}/sysconfig' networkscriptsdir='${sysconfigdir}/network-scripts' rcdir='${sysconfdir}/rc.d' docdir="${prefix}/doc/$PACKAGE-$VERSION" libdir="${exec_prefix}/lib" dnl i18n support AC_PATH_PROGS(MSGMERGE, msgmerge) AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt) CATALOGS= POTFILES= for lang in $ALL_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" POTFILES="$POTFILES $lang.po" done POTSRC= for src in $BASHSCRIPTS; do POTSRC="$POTSRC \$(top_srcdir)/$src" done AC_ARG_WITH(localedir, [ --with-localedir=PATH specify where the locale stuff should go ]) if test "x$LOCALEDIR" = "x"; then if test "x$with_localedir" != "x"; then LOCALEDIR=$with_localedir else LOCALEDIR='$(prefix)/share/locale' fi fi localedir=$LOCALEDIR gnulocaledir=$LOCALEDIR if test "`eval echo $sysconfdir`" = "NONE/etc"; then defaultdir="/usr/local/etc" else defaultdir="`eval echo $sysconfdir`" fi dnl Output AC_SUBST(BASHSCRIPTS) AC_SUBST(CATALOGS) AC_SUBST(POTFILES) AC_SUBST(POTSRC) AC_SUBST(localedir) AC_SUBST(gnulocaledir) AC_SUBST(pppdir) AC_SUBST(networkscriptsdir) AC_SUBST(sysconfigdir) AC_SUBST(rcdir) AC_SUBST(docdir) AC_SUBST(libdir) AC_OUTPUT(Makefile src/Makefile doc/Makefile \ ppp/Makefile ppp/ip-up.d/Makefile ppp/ip-down.d/Makefile \ sysconfig/Makefile \ sysconfig/network-scripts/Makefile \ sysconfig/interfaces/Makefile \ sysconfig/interfaces/data/Makefile \ rc.d/Makefile rc.d/init.d/Makefile \ po/Makefile \ rc-scripts.spec)