Mercurial > hg
diff mcabber/src/help.c @ 877:b38760d9ec2d
autoconf: Remove --with-datadir, use built-in --datarootdir option
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 27 May 2006 12:51:19 +0200 |
parents | cefdaeb42e67 |
children | c3c2f7a0c5d5 |
line wrap: on
line diff
--- a/mcabber/src/help.c Sat May 27 00:05:17 2006 +0200 +++ b/mcabber/src/help.c Sat May 27 12:51:19 2006 +0200 @@ -35,7 +35,7 @@ // Return the language code string (a 2-letters string). static const char *get_lang(void) { static const char *lang_str = DEFAULT_LANG; -#ifdef DATA_DIR +#ifdef DATA_ROOT_DIR static char lang[3]; const char *opt_l; opt_l = settings_opt_get("lang"); @@ -44,7 +44,7 @@ mc_strtolower(lang); lang_str = lang; } -#endif /* DATA_DIR */ +#endif /* DATA_ROOT_DIR */ return lang_str; } @@ -54,7 +54,7 @@ // Return 0 in case of success. int help_process(char *string) { -#ifndef DATA_DIR +#ifndef DATA_ROOT_DIR scr_LogPrint(LPRINT_NORMAL, "Help isn't available."); return -1; #else @@ -75,7 +75,7 @@ // Look for help file lang = get_lang(); - helpfiles_dir = g_strdup_printf("%s/mcabber/help", DATA_DIR); + helpfiles_dir = g_strdup_printf("%s/mcabber/help", DATA_ROOT_DIR); if (string && *string) { p = g_strdup(string); mc_strtolower(p); @@ -109,7 +109,7 @@ g_free(data); return 0; -#endif /* DATA_DIR */ +#endif /* DATA_ROOT_DIR */ }