mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
dlls.
This commit is contained in:
parent
5957d504f0
commit
ccf4c1e6cd
@ -1,3 +1,8 @@
|
|||||||
|
2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
||||||
|
|
||||||
|
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
|
||||||
|
dlls.
|
||||||
|
|
||||||
2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
||||||
|
|
||||||
* cygcheck.cc (dump_sysinfo): Add leading newline before legend for
|
* cygcheck.cc (dump_sysinfo): Add leading newline before legend for
|
||||||
|
@ -1222,6 +1222,7 @@ dump_sysinfo ()
|
|||||||
|
|
||||||
if (givehelp)
|
if (givehelp)
|
||||||
printf ("Looking for various Cygnus DLLs... (-v gives version info)\n");
|
printf ("Looking for various Cygnus DLLs... (-v gives version info)\n");
|
||||||
|
int cygwin_dll_count = 0;
|
||||||
for (i = 0; i < num_paths; i++)
|
for (i = 0; i < num_paths; i++)
|
||||||
{
|
{
|
||||||
WIN32_FIND_DATA ffinfo;
|
WIN32_FIND_DATA ffinfo;
|
||||||
@ -1238,7 +1239,10 @@ dump_sysinfo ()
|
|||||||
{
|
{
|
||||||
sprintf (tmp, "%s\\%s", paths[i], f);
|
sprintf (tmp, "%s\\%s", paths[i], f);
|
||||||
if (strcasecmp (f, "cygwin1.dll") == 0)
|
if (strcasecmp (f, "cygwin1.dll") == 0)
|
||||||
found_cygwin_dll = strdup (tmp);
|
{
|
||||||
|
cygwin_dll_count++;
|
||||||
|
found_cygwin_dll = strdup (tmp);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ls (tmp);
|
ls (tmp);
|
||||||
}
|
}
|
||||||
@ -1253,6 +1257,10 @@ dump_sysinfo ()
|
|||||||
|
|
||||||
FindClose (ff);
|
FindClose (ff);
|
||||||
}
|
}
|
||||||
|
if (cygwin_dll_count > 1)
|
||||||
|
puts ("Warning: There are multiple cygwin1.dlls on your path");
|
||||||
|
if (!cygwin_dll_count)
|
||||||
|
puts ("Warning: cygwin1.dll not found on your path");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user