# HG changeset patch # User Chong Yidong # Date 1217887035 0 # Node ID 446c48795aa8fb8e7ae1bad6880882c09d9dc050 # Parent 352cea63b3b2da9ab3e6284944285a956198e4ce Test for existence of NSInteger. Suggested by Yavor Doganov. diff -r 352cea63b3b2 -r 446c48795aa8 configure.in --- a/configure.in Mon Aug 04 21:57:03 2008 +0000 +++ b/configure.in Mon Aug 04 21:57:15 2008 +0000 @@ -1236,6 +1236,14 @@ LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" fi AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=yes) + NS_HAVE_INTEGER=yes + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [NSInteger i;])], + ns_have_integer=yes, + ns_have_integer=no) + if test $ns_have_integer = no; then + NS_HAVE_INTEGER=no + fi fi if test "${HAVE_NS}" = yes; then window_system=nextstep @@ -2046,6 +2054,9 @@ if test "${NS_IMPL_GNUSTEP}" = "yes"; then AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.]) fi + dnl if test "${NS_HAVE_INTEGER}" = "yes"; then + AC_DEFINE(NS_HAVE_INTEGER, 1, [Define to 1 if `NSInteger' is defined.]) + dnl fi # We also have mouse menus. HAVE_MENUS=yes fi