From 1b8ce908c1f14ad191fa7d28e4a5e4b141af358b Mon Sep 17 00:00:00 2001 From: Hartmut Henkel Date: Thu, 11 Jan 2007 00:32:19 +0000 Subject: If the engine is put into a place from where no texmf.cnf can be found, give a hint to the user like this: warning: Couldn't find texmf.cnf in any of these directories: /home/user:/home:/:/home/user/share/texmf-local/web2c:/home/share/texmf-local/web2c://share/texmf-local/web2c:/home/user/texmf-local/web2c:/home/texmf-local/web2c://texmf-local/web2c:/home/user/share/texmf/web2c:/home/share/texmf/web2c://share/texmf/web2c:/home/user/texmf/web2c:/home/texmf/web2c://texmf/web2c:/.:/usr/local/teTeX/share/texmf/web2c:/usr/local/teTeX/share/texmf/web2c Trying to proceed... Often this new warning will precede the following warning: ! You have to increase POOLSIZE. which was rather misleading before. git-svn-id: svn://tug.org/texlive/trunk@3321 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/cnf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/kpathsea/cnf.c') diff --git a/Build/source/texk/kpathsea/cnf.c b/Build/source/texk/kpathsea/cnf.c index 982495bde48..394b4630506 100644 --- a/Build/source/texk/kpathsea/cnf.c +++ b/Build/source/texk/kpathsea/cnf.c @@ -162,7 +162,7 @@ read_all_cnf P1H(void) cnf_hash = hash_create (CNF_HASH_SIZE); cnf_files = kpse_all_path_search (cnf_path, CNF_NAME); - if (cnf_files) { + if (cnf_files && *cnf_files) { for (cnf = cnf_files; *cnf; cnf++) { string line; FILE *cnf_file = xfopen (*cnf, FOPEN_R_MODE); @@ -197,7 +197,8 @@ read_all_cnf P1H(void) free (*cnf); } free (cnf_files); - } + } else + WARNING1 ("Couldn't find file texmf.cnf in any of these directories:\n%s\nTrying to proceed...", cnf_path); } /* Read the cnf files on the first call. Return the first value in the -- cgit v1.2.3