Просмотр исходного кода

Make it possible to not build dselect

Wichert Akkerman лет назад: 26
Родитель
Сommit
deeed62b6f
3 измененных файлов с 16 добавлено и 5 удалено
  1. 5 0
      ChangeLog
  2. 1 1
      Makefile.in
  3. 10 4
      configure.in

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Wed Dec 15 00:18:30 CET 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * Add option to disable building dselect
+  * Add config.sub and config.guess
+
 Tue Dec 14 20:08:58 CET 1999 Wichert Akkerman <wakkerma@debian.org>
 
   * automake/sysconf.m4: really add the file this time

+ 1 - 1
Makefile.in

@@ -9,7 +9,7 @@ GENFILES	= version.h
 include Makefile.conf
 
 SUBDIRS		= include lib dpkg-deb split scripts utils main \
-		  utils doc dselect po methods
+		  utils doc @DSELECTDIR@ po methods
 
 all: version.h all-recursive
 

+ 10 - 4
configure.in

@@ -4,15 +4,21 @@ AC_PREREQ([2.12])
 
 AC_INIT(include/dpkg.h.in)
 AC_CONFIG_HEADER(config.h)
-
+DSELECTDIR="dselect"
+AC_ARG_WITH(dselect,
+[  --with-dselect          the dselect package-management frontend],
+[case "$withval" in
+  "false" | "no" )
+    DSELECTDIR=""
+    ;;
+ esac])
+AC_SUBST(DSELECTDIR)
 
 AC_CHECK_TOOL_PREFIX
+AC_CANONICAL_SYSTEM
 
 AC_CHECK_TOOL(CC, gcc)
 AC_PROG_CC
-AC_CANONICAL_SYSTEM
-AC_CHECK_TOOL_PREFIX
-
 AC_PROG_CXX
 AM_CONDITIONAL(HAVE_CPLUSPLUS, [test "$CXX" != ""])