OSDN Git Service

Disable NLS support when --disable-nls is passed
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2005 16:43:36 +0000 (16:43 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2005 16:43:36 +0000 (16:43 +0000)
Disable NLS support when --disable-nls is passed (bug#1514).

aplay/aplay.c
seq/aconnect/aconnect.c
seq/aseqnet/aseqnet.c
speaker-test/speaker-test.c

index 69cb345..04df6e8 100644 (file)
@@ -364,8 +364,10 @@ int main(int argc, char *argv[])
        int do_names_list = 0, do_device_list = 0, do_pcm_list = 0;
        snd_pcm_info_t *info;
 
+#ifdef ENABLE_NLS
        setlocale(LC_ALL, "");
        textdomain(PACKAGE);
+#endif
 
        snd_pcm_info_alloca(&info);
 
index 2d40bf5..bab501a 100644 (file)
@@ -279,8 +279,10 @@ int main(int argc, char **argv)
        snd_seq_port_subscribe_t *subs;
        snd_seq_addr_t sender, dest;
 
+#ifdef ENABLE_NLS
        setlocale(LC_ALL, "");
        textdomain(PACKAGE);
+#endif
 
        while ((c = getopt_long(argc, argv, "dior:t:elx", long_option, NULL)) != -1) {
                switch (c) {
index 35b5cc8..9cb61c2 100644 (file)
@@ -98,8 +98,10 @@ int main(int argc, char **argv)
        int port = DEFAULT_PORT;
        char *source = NULL, *dest = NULL;
 
+#ifdef ENABLE_NLS
        setlocale(LC_ALL, "");
        textdomain(PACKAGE);
+#endif
 
        while ((c = getopt_long(argc, argv, "p:s:d:vi", long_option, NULL)) != -1) {
                switch (c) {
index 57603dd..f15645f 100644 (file)
@@ -530,8 +530,10 @@ int main(int argc, char *argv[]) {
     {NULL,        0, NULL, 0  },
   };
 
+#ifdef ENABLE_NLS
   setlocale(LC_ALL, "");
   textdomain(PACKAGE);
+#endif
 
   snd_pcm_hw_params_alloca(&hwparams);
   snd_pcm_sw_params_alloca(&swparams);