From 96f54b8bc892bc6feee6b9a3878b23e8dcbb2004 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 2 Sep 2013 10:55:24 +0200 Subject: mount: handle -t auto Use libblkid to detect the filesystem type if "auto" is given as type. Remove the translator localization from main, this is also done in do_mount and any errors are propagated properly. This way "auto" is handled correctly if given on the command line or used as filesystem type in the fstab. * configure.ac: Add check for libblkid. * config.make.in: Make libblkid specific values available. * utils/Makefile: Use libblkid specific values. * utils/mount.c (DEFAULT_FSTYPE): Use "auto" as default type. (do_mount): Detect type using libblkid. (main): Drop translator localization. --- config.make.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.make.in') diff --git a/config.make.in b/config.make.in index edb74c07..4d2abcca 100644 --- a/config.make.in +++ b/config.make.in @@ -85,6 +85,11 @@ HAVE_DAEMON = @HAVE_DAEMON@ libdaemon_CFLAGS = @libdaemon_CFLAGS@ libdaemon_LIBS = @libdaemon_LIBS@ +# How to compile and link against libblkid. +HAVE_BLKID = @HAVE_BLKID@ +libblkid_CFLAGS = @libblkid_CFLAGS@ +libblkid_LIBS = @libblkid_LIBS@ + # Whether Sun RPC support is available. HAVE_SUN_RPC = @HAVE_SUN_RPC@ -- cgit v1.2.3