OSDN Git Service

build: remove configure-time options: --disable-fs, --enable-Werror
authorJim Meyering <meyering@redhat.com>
Tue, 17 May 2011 21:08:42 +0000 (23:08 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 May 2011 15:07:46 +0000 (17:07 +0200)
* configure.ac: Remove support for --enable-fs and --disable-fs.
Remove support for --enable-Werror and --disable-Werror.
* README: Remove paragraph about --disable-fs and
--enable-discovery-only.
* libparted/libparted.c: Now that --disable-fs is gone (i.e.,
ENABLE_FS would be always 1), remove its #ifdefs.

README
configure.ac
libparted/libparted.c

diff --git a/README b/README
index 3196aee..aff7053 100644 (file)
--- a/README
+++ b/README
@@ -68,10 +68,3 @@ not a "requires".
 
 (3) When space is important, we suggest --without-readline, --disable-shared,
 and possibly --disable-nls and --disable-dynamic-loading.
-
-If Parted is only going to be used for probing / discovery (and not
-"editing"), there is a --enable-discovery-only and --disable-fs (when you're
-only interested in partition tables).  Since it's readonly, --enable-debug
-gains you nothing wrt safety, so use --disable-debug ;)  The "discover"
-program is about 35k (gzipped) when compiled this way (not counting libc
-and libuuid).
index 76ac8a8..ce2b3b5 100644 (file)
@@ -117,15 +117,6 @@ if test "$enable_discover_only" = yes \
        )
 fi
 
-AC_ARG_ENABLE([fs],
-       [  --enable-fs             include filesystem support [default=yes]], ,
-       enable_fs=yes
-)
-if test "$enable_fs" = yes; then
-       AC_DEFINE([ENABLE_FS], [1],
-                 [Include file system support.  i.e. libparted/fs_...])
-fi
-
 AC_ARG_ENABLE([debug],
        [  --enable-debug          compile in assertions [default=yes]], ,
        enable_debug=yes
@@ -157,11 +148,6 @@ if test "$enable_pc98" = yes; then
                   collisions with msdos partition tables])
 fi
 
-AC_ARG_ENABLE([Werror],
-       [  --enable-Werror         build with gcc -Werror [default=yes]], ,
-       enable_Werror=yes
-)
-
 AC_ARG_ENABLE([hfs-extract-fs],
        [  --enable-hfs-extract-fs Extract special HFS files for debugging [default=no]], ,
        enable_hfs_extract_fs=no
@@ -593,12 +579,6 @@ fi
 
 AC_CHECK_FUNCS([canonicalize_file_name])
 
-# CFLAGS="$CFLAGS -W -Wall -Wno-unused -Wno-switch -Wno-format"
-
-if test "$enable_Werror" = yes; then
-       CFLAGS="$CFLAGS -Werror"
-fi
-
 DATE=$(date '+%d %b %Y %H:%M')
 USER=$(whoami)
 HOST=$(hostname)
index db1c413..fe617bd 100644 (file)
@@ -98,7 +98,6 @@ init_disk_types ()
        ped_disk_aix_init ();
 }
 
-#ifdef ENABLE_FS
 extern void ped_file_system_amiga_init (void);
 extern void ped_file_system_xfs_init (void);
 extern void ped_file_system_ufs_init (void);
@@ -126,7 +125,6 @@ init_file_system_types ()
        ped_file_system_ext2_init ();
        ped_file_system_nilfs2_init ();
 }
-#endif /* ENABLE_FS */
 
 extern void ped_disk_aix_done ();
 extern void ped_disk_bsd_done ();
@@ -170,17 +168,13 @@ _init()
 #endif
 
        init_disk_types ();
-
-#ifdef ENABLE_FS
        init_file_system_types ();
-#endif
        ped_set_architecture ();
 #ifdef DEBUG
        memset (dodgy_memory_active, 0, sizeof (dodgy_memory_active));
 #endif
 }
 
-#ifdef ENABLE_FS
 extern void ped_file_system_nilfs2_done (void);
 extern void ped_file_system_ext2_done (void);
 extern void ped_file_system_fat_done (void);
@@ -208,7 +202,6 @@ done_file_system_types ()
        ped_file_system_xfs_done ();
        ped_file_system_amiga_done ();
 }
-#endif /* ENABLE_FS */
 
 static void _done() __attribute__ ((destructor));
 
@@ -216,12 +209,8 @@ static void
 _done()
 {
        ped_device_free_all ();
-
        done_disk_types ();
-
-#ifdef ENABLE_FS
        done_file_system_types ();
-#endif
 }
 
 const char*