autodist \
#endif SILC_DIST_AUTODIST
#ifdef SILC_DIST_SERVER
- silcd \
+ @SILCD_SUBDIR@ \
#endif SILC_DIST_SERVER
#ifdef SILC_DIST_CLIENT
- irssi \
+ @IRSSI_SUBDIR@ \
#endif SILC_DIST_CLIENT
# Create default distdir
if test '!' -f $distdir; then
- mkdir -p $distdir
+ mkdir -p -- $distdir
fi
# Create Autodist configuration file
d=`echo $src | sed 's,/[^/]*$,,'`
if test "$d" != "$src" && test "$d" != "." && \
test '!' -d $am_distdir/$d; then
- mkdir -p $am_distdir/$d || exit 1
+ mkdir -p -- $am_distdir/$d || exit 1
fi
else
# Add to different location
d=`echo $dst | sed 's,/[^/]*$,,'`
if test "$d" != "$dst" && test "$d" != "." && \
test '!' -d $am_distdir/$d; then
- mkdir -p $am_distdir/$d || exit 1
+ mkdir -p -- $am_distdir/$d || exit 1
fi
fi
d=""
fi
if test '!' -d $am_distdir/$d && test "$ds" != "$d"; then
- mkdir -p $am_distdir/$d || exit 1
+ mkdir -p -- $am_distdir/$d || exit 1
fi
if test x$3 = xtrue; then
d=`echo $d | sed 's,/[^/]*$,,'`
fi
if test '!' -d $am_distdir/$d && test "$dst" != "$d"; then
- mkdir -p $am_distdir/$d || exit 1
+ mkdir -p -- $am_distdir/$d || exit 1
fi
if test x$3 = xtrue; then
f="$cur/autodist__noprocess"
rm -rf $f
- mkdir -p $f || exit 1
+ mkdir -p -- $f || exit 1
# First, include them to new location with correct directory structure.
old_am_distdir="$am_distdir"
# for getting irssi specific stuff to top configure script with Autodist
# without polluting the top configure.ad file with these stuff.
+IRSSI_SUBDIR=
+
+#ifdef SILC_DIST_TOOLKIT
+if test x$without_irssi = xfalse; then
+#endif SILC_DIST_TOOLKIT
+
+IRSSI_SUBDIR=irssi
+
# help directory
#
HELPDIR="$silc_prefix/help"
if it should be built into main silc binary
(static, default) or as a module]])
-#ifdef SILC_DIST_TOOLKIT
-if test x$without_irssi = xfalse; then
-#endif SILC_DIST_TOOLKIT
- AC_CONFIG_SUBDIRS(apps/irssi)
- AC_CONFIG_FILES(
+AC_CONFIG_SUBDIRS(apps/irssi)
+AC_CONFIG_FILES(
apps/irssi/Makefile.defines
apps/irssi/Makefile.defines_int
)
- irssi="yes"
+
+irssi="yes"
#ifdef SILC_DIST_TOOLKIT
-fi
+fi # without_irssi = false
#endif SILC_DIST_TOOLKIT
+AC_SUBST(IRSSI_SUBDIR)
#endif SILC_DIST_CLIENT
# GNU General Public License for more details.
#
+SILCD_SUBDIR=
+
+#ifdef SILC_DIST_TOOLKIT
+if test x$without_silcd = xfalse; then
+#endif SILC_DIST_TOOLKIT
+
+SILCD_SUBDIR=silcd
+
# Logs directory
#
LOGSDIR="$silc_prefix/logs"
])
AC_SUBST(PIDFILE)
-#ifdef SILC_DIST_TOOLKIT
-if test x$without_silcd = xfalse ; then
-#endif SILC_DIST_TOOLKIT
- AC_CONFIG_FILES(
+AC_CONFIG_FILES(
apps/silcd/Makefile
doc/example_silcd.conf
)
+
+silcd="yes"
#ifdef SILC_DIST_TOOLKIT
-fi
+fi # without_silcd = false
#endif SILC_DIST_TOOLKIT
-silcd="yes"
+AC_SUBST(SILCD_SUBDIR)
#endif SILC_DIST_SERVER
AM_CONDITIONAL(SILC_OS2, test xfalse = xtrue)
#ifdef SILC_DIST_TOOLKIT
-# --without-irssi
+# --with-irssi
#
-without_irssi=false
+without_irssi=true
AC_MSG_CHECKING(whether to compile Irssi SILC Client)
AC_ARG_WITH(irssi,
- [ --without-irssi compile without Irssi SILC Client],
+ [ --with-irssi compile with Irssi SILC Client],
[
- AC_MSG_RESULT(no)
- without_irssi=true
+ AC_MSG_RESULT(yes)
],
[
- AC_MSG_RESULT(yes)
+ AC_MSG_RESULT(no)
+ without_irssi=false
])
-# --without-silcd
+# --with-silcd
#
-without_silcd=false
+without_silcd=true
AC_MSG_CHECKING(whether to compile SILC Server)
AC_ARG_WITH(silcd,
- [ --without-silcd compile without SILC Server],
+ [ --with-silcd compile with SILC Server],
[
- AC_MSG_RESULT(no)
- without_silcd=true
+ AC_MSG_RESULT(yes)
],
[
- AC_MSG_RESULT(yes)
+ AC_MSG_RESULT(no)
+ without_silcd=false
])
#endif SILC_DIST_TOOLKIT