Added a check for a glibc compliant regex implementation.
2001-01-02 Daniel Egger <egger@suse.de> * acconfig.h: * configure.in: Added a check for a glibc compliant regex implementation.
This commit is contained in:
committed by
Daniel Egger
parent
15c239274c
commit
bfb955bd74
@ -1,3 +1,9 @@
|
||||
2001-01-02 Daniel Egger <egger@suse.de>
|
||||
|
||||
* acconfig.h:
|
||||
* configure.in: Added a check for a glibc compliant
|
||||
regex implementation.
|
||||
|
||||
2001-01-02 Simon Budig <simon@gimp.org>
|
||||
|
||||
* app/paint_core.c: use floor() before casting to gint when
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
#undef HAVE_DIRENT_H
|
||||
#undef HAVE_DOPRNT
|
||||
#undef HAVE_GETTEXT
|
||||
#undef HAVE_GLIBC_REGEX
|
||||
#undef HAVE_IPC_H
|
||||
#undef HAVE_LC_MESSAGES
|
||||
#undef HAVE_MMAP
|
||||
|
||||
19
configure.in
19
configure.in
@ -331,6 +331,23 @@ if test "$ac_cv_header_sys_shm_h" = "yes"; then
|
||||
AC_MSG_RESULT(assuming no))
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(checking for regex in glibc)
|
||||
AC_TRY_RUN([
|
||||
#include <features.h>
|
||||
#include <stdio.h>
|
||||
#include <regex.h>
|
||||
int main()
|
||||
{
|
||||
#if __GLIBC__ >= 2
|
||||
return (0);
|
||||
#else
|
||||
return (1);
|
||||
#endif
|
||||
}], AC_DEFINE(HAVE_GLIBC_REGEX)
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no),
|
||||
AC_MSG_RESULT(assuming no))
|
||||
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
@ -662,6 +679,8 @@ AC_SUBST(LT_AGE)
|
||||
AC_SUBST(GLIB_CFLAGS)
|
||||
AC_SUBST(GLIB_LIBS)
|
||||
|
||||
AC_SUBST(HAVE_GLIBC_REGEX)
|
||||
|
||||
AC_SUBST(gimpdir)
|
||||
AC_SUBST(gimpdatadir)
|
||||
AC_SUBST(gimpplugindir)
|
||||
|
||||
Reference in New Issue
Block a user