Added configure check for regex.h.

This commit is contained in:
Alexandre Julliard 2003-01-13 18:41:40 +00:00
parent 9e23cf31e1
commit b69389520c
4 changed files with 17 additions and 0 deletions

2
configure vendored
View File

@ -13356,6 +13356,7 @@ done
for ac_header in \
@ -13386,6 +13387,7 @@ for ac_header in \
netinet/tcp.h \
pty.h \
pwd.h \
regex.h \
sched.h \
scsi/sg.h \
socket.h \

View File

@ -1017,6 +1017,7 @@ AC_CHECK_HEADERS(\
netinet/tcp.h \
pty.h \
pwd.h \
regex.h \
sched.h \
scsi/sg.h \
socket.h \

View File

@ -413,6 +413,9 @@
/* Define to 1 if you have the `pwrite' function. */
#undef HAVE_PWRITE
/* Define to 1 if you have the <regex.h> header file. */
#undef HAVE_REGEX_H
/* Define to 1 if you have the `resizeterm' function. */
#undef HAVE_RESIZETERM

View File

@ -1335,6 +1335,8 @@ int DEBUG_SetLocalSymbolType(struct wine_locals * sym, struct datatype * type)
return TRUE;
}
#ifdef HAVE_REGEX_H
static int cmp_sym_by_name(const void * p1, const void * p2)
{
struct name_hash ** name1 = (struct name_hash **) p1;
@ -1396,3 +1398,12 @@ void DEBUG_InfoSymbols(const char* str)
}
HeapFree(GetProcessHeap(), 0, array);
}
#else /* HAVE_REGEX_H */
void DEBUG_InfoSymbols(const char* str)
{
DEBUG_Printf( DBG_CHN_MESG, "FIXME: needs regex support\n" );
}
#endif /* HAVE_REGEX_H */