Move widechar tests from `glib' to here, since those were meant only for
1999-03-13 Raja R Harinath <harinath@cs.umn.edu> * configure.in (gdk_wc): Move widechar tests from `glib' to here, since those were meant only for gdki18n.h. * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_* for widechar tests. * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
This commit is contained in:

committed by
Raja R Harinath

parent
a3c5d33f26
commit
044fd2db47
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
|
||||||
|
|
||||||
|
* configure.in (gdk_wc): Move widechar tests from `glib' to here,
|
||||||
|
since those were meant only for gdki18n.h.
|
||||||
|
* gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
|
||||||
|
for widechar tests.
|
||||||
|
* gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
|
||||||
|
|
||||||
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
1999-03-13 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
* configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
|
||||||
|
55
configure.in
55
configure.in
@ -449,40 +449,29 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Duplicate `widechar' tests from `glib'.
|
# `widechar' tests for gdki18n.h
|
||||||
# Check for wchar.h
|
|
||||||
if test x = y; then
|
|
||||||
# will not be executed
|
|
||||||
# hack so as not to update `acconfig.h'
|
|
||||||
AC_CHECK_HEADERS(wchar.h wctype.h)
|
|
||||||
AC_CHECK_FUNCS(broken_wctype)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for wchar.h)
|
AC_MSG_CHECKING(for wchar.h)
|
||||||
AC_TRY_CPP([#include <wchar.h>], gtk_ok=yes, gtk_ok=no)
|
AC_TRY_CPP([#include <wchar.h>], gdk_wchar_h=yes, gdk_wchar_h=no)
|
||||||
if test $gtk_ok = yes; then
|
if test $gdk_wchar_h = yes; then
|
||||||
ac_kludge=HAVE_WCHAR_H
|
AC_DEFINE(HAVE_WCHAR_H,1,[Have wchar.h include file])
|
||||||
AC_DEFINE($ac_kludge)
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($gtk_ok)
|
AC_MSG_RESULT($gdk_wchar_h)
|
||||||
|
|
||||||
# Check for wctype.h (for iswalnum)
|
# Check for wctype.h (for iswalnum)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for wctype.h)
|
AC_MSG_CHECKING(for wctype.h)
|
||||||
AC_TRY_CPP([#include <wctype.h>], gtk_ok=yes, gtk_ok=no)
|
AC_TRY_CPP([#include <wctype.h>], gdk_wctype_h=yes, gdk_wctype_h=no)
|
||||||
if test $gtk_ok = yes; then
|
if test $gdk_wctype_h = yes; then
|
||||||
ac_kludge=HAVE_WCTYPE_H
|
AC_DEFINE(HAVE_WCTYPE_H,1,[Have wctype.h include file])
|
||||||
AC_DEFINE($ac_kludge)
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($gtk_ok)
|
AC_MSG_RESULT($gdk_wctype_h)
|
||||||
|
|
||||||
# in Solaris 2.5, `iswalnum' is in -lw
|
# in Solaris 2.5, `iswalnum' is in -lw
|
||||||
GDK_WLIBS=
|
GDK_WLIBS=
|
||||||
AC_CHECK_FUNC(iswalnum,,[AC_CHECK_LIB(w,iswalnum,GDK_WLIBS=-lw)])
|
AC_CHECK_FUNC(iswalnum,,[AC_CHECK_LIB(w,iswalnum,GDK_WLIBS=-lw)])
|
||||||
|
|
||||||
# The following is necessary for Linux libc-5.4.38
|
|
||||||
oLIBS="$LIBS"
|
oLIBS="$LIBS"
|
||||||
LIBS="$LIBS $GDK_WLIBS"
|
LIBS="$LIBS $GDK_WLIBS"
|
||||||
|
# The following is necessary for Linux libc-5.4.38
|
||||||
AC_MSG_CHECKING(if iswalnum() and friends are properly defined)
|
AC_MSG_CHECKING(if iswalnum() and friends are properly defined)
|
||||||
AC_TRY_LINK([#include <stdlib.h>],[
|
AC_TRY_LINK([#include <stdlib.h>],[
|
||||||
#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
|
#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
|
||||||
@ -497,15 +486,14 @@ AC_TRY_LINK([#include <stdlib.h>],[
|
|||||||
# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
|
# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
|
||||||
#endif
|
#endif
|
||||||
iswalnum((wchar_t) 0);
|
iswalnum((wchar_t) 0);
|
||||||
], gtk_ok=yes, gtk_ok=no)
|
], gdk_working_wctype=yes, gdk_working_wctype=no)
|
||||||
LIBS="$oLIBS"
|
LIBS="$oLIBS"
|
||||||
|
|
||||||
if test $gtk_ok = no; then
|
if test $gdk_working_wctype = no; then
|
||||||
ac_kludge=HAVE_BROKEN_WCTYPE
|
AC_DEFINE(HAVE_BROKEN_WCTYPE,1,[Is the wctype implementation broken])
|
||||||
AC_DEFINE($ac_kludge)
|
|
||||||
GDK_WLIBS=
|
GDK_WLIBS=
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($gtk_ok)
|
AC_MSG_RESULT($gdk_working_wctype)
|
||||||
AC_SUBST(GDK_WLIBS)
|
AC_SUBST(GDK_WLIBS)
|
||||||
|
|
||||||
AC_SUBST(GTK_DEBUG_FLAGS)
|
AC_SUBST(GTK_DEBUG_FLAGS)
|
||||||
@ -549,6 +537,7 @@ _______EOF
|
|||||||
|
|
||||||
cat >>$outfile <<_______EOF
|
cat >>$outfile <<_______EOF
|
||||||
$gdk_windowing
|
$gdk_windowing
|
||||||
|
$gdk_wc
|
||||||
_______EOF
|
_______EOF
|
||||||
|
|
||||||
cat >>$outfile <<_______EOF
|
cat >>$outfile <<_______EOF
|
||||||
@ -572,6 +561,20 @@ esac
|
|||||||
# Currently we always use X11 on those systems where we run configure...
|
# Currently we always use X11 on those systems where we run configure...
|
||||||
gdk_windowing='
|
gdk_windowing='
|
||||||
#define GDK_WINDOWING GDK_WINDOWING_X11'
|
#define GDK_WINDOWING GDK_WINDOWING_X11'
|
||||||
|
if test x$gdk_wchar_h = xyes; then
|
||||||
|
gdk_wc='
|
||||||
|
#define GDK_HAVE_WCHAR_H 1'
|
||||||
|
fi
|
||||||
|
if test x$gdk_wctype_h = xyes; then
|
||||||
|
gdk_wc="\$gdk_wc
|
||||||
|
#define GDK_HAVE_WCTYPE_H 1"
|
||||||
|
fi
|
||||||
|
if test x$gdk_working_wctype = xno; then
|
||||||
|
gdk_wc="\$gdk_wc
|
||||||
|
#define GDK_HAVE_BROKEN_WCTYPE 1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
|
@ -30,16 +30,17 @@
|
|||||||
/* GDK uses "glib". (And so does GTK).
|
/* GDK uses "glib". (And so does GTK).
|
||||||
*/
|
*/
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include <gdkconfig.h>
|
||||||
|
|
||||||
/* international string support */
|
/* international string support */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if !defined(G_HAVE_BROKEN_WCTYPE) && (defined(G_HAVE_WCTYPE_H) || defined(G_HAVE_WCHAR_H)) && !defined(X_LOCALE)
|
#if !defined(GDK_HAVE_BROKEN_WCTYPE) && (defined(GDK_HAVE_WCTYPE_H) || defined(GDK_HAVE_WCHAR_H)) && !defined(X_LOCALE)
|
||||||
# ifdef G_HAVE_WCTYPE_H
|
# ifdef GDK_HAVE_WCTYPE_H
|
||||||
# include <wctype.h>
|
# include <wctype.h>
|
||||||
# else
|
# else
|
||||||
# ifdef G_HAVE_WCHAR_H
|
# ifdef GDK_HAVE_WCHAR_H
|
||||||
# include <wchar.h>
|
# include <wchar.h>
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
@ -369,7 +369,7 @@ INCLUDES = \
|
|||||||
-DGTK_DATA_PREFIX=\"$(prefix)\" \
|
-DGTK_DATA_PREFIX=\"$(prefix)\" \
|
||||||
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
|
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
|
||||||
-DGTK_LOCALEDIR=\"$(gtklocaledir)\" \
|
-DGTK_LOCALEDIR=\"$(gtklocaledir)\" \
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) -I../gdk \
|
||||||
@GTK_DEBUG_FLAGS@ \
|
@GTK_DEBUG_FLAGS@ \
|
||||||
@GTK_XIM_FLAGS@ \
|
@GTK_XIM_FLAGS@ \
|
||||||
@GTK_LOCALE_FLAGS@ \
|
@GTK_LOCALE_FLAGS@ \
|
||||||
|
Reference in New Issue
Block a user