Commit bfb955bd authored by Daniel Egger's avatar Daniel Egger Committed by Daniel Egger

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.
parent 15c23927
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment