summaryrefslogtreecommitdiffstats
path: root/unix/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'unix/configure.in')
-rw-r--r--unix/configure.in105
1 files changed, 56 insertions, 49 deletions
diff --git a/unix/configure.in b/unix/configure.in
index 732b301..b94c4ce 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.105 2005/05/27 23:14:29 dkf Exp $
+# RCS: @(#) $Id: configure.in,v 1.106 2005/05/29 06:47:05 das Exp $
AC_INIT([tk],[8.5])
AC_PREREQ(2.57)
@@ -227,7 +227,7 @@ fi
if test $tk_aqua = yes; then
AC_DEFINE(MAC_OSX_TK, 1, [Are we building TkAqua?])
- LIBS="$LIBS -framework Carbon"
+ LIBS="$LIBS -framework Carbon -framework IOKit"
CFLAGS="$CFLAGS -fpascal-strings"
TK_WINDOWINGSYSTEM=AQUA
else
@@ -290,7 +290,9 @@ eval "LD_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
# if -lsocket doesn't work by itself.
#--------------------------------------------------------------------
-AC_CHECK_LIB(Xbsd, main, [LIBS="$LIBS -lXbsd"])
+if test $tk_aqua = no; then
+ AC_CHECK_LIB(Xbsd, main, [LIBS="$LIBS -lXbsd"])
+fi
#--------------------------------------------------------------------
# One more check related to the X libraries. The standard releases
@@ -303,7 +305,7 @@ AC_CHECK_LIB(Xbsd, main, [LIBS="$LIBS -lXbsd"])
# because it can't deal with the "-" in the library name.
#--------------------------------------------------------------------
-if test -d /usr/include/mit ; then
+if test -d /usr/include/mit -a $tk_aqua = no; then
AC_MSG_CHECKING([MIT X libraries])
tk_oldCFlags=$CFLAGS
CFLAGS="$CFLAGS -I/usr/include/mit"
@@ -327,60 +329,65 @@ fi
# extension are available, and set HAVE_XSS if so.
# XScreenSaver is needed for Tk_GetUserInactiveTime().
#--------------------------------------------------------------------
-AC_MSG_CHECKING([for XScreenSaver support])
-tk_oldCFlags=$CFLAGS
-CFLAGS="$CFLAGS $XINCLUDES"
-tk_oldLibs=$LIBS
-LIBS="$LIBS $XLIBSW -lXss -lXext"
-AC_TRY_LINK([
- #include <X11/Xlib.h>
- #include <X11/extensions/scrnsaver.h>
-] , [
- XScreenSaverAllocInfo();
-], [
- AC_MSG_RESULT(yes)
- XLIBSW="$XLIBSW -lXss -lXext"
- AC_DEFINE([HAVE_XSS])
-], AC_MSG_RESULT(no))
-CFLAGS=$tk_oldCFlags
-LIBS=$tk_oldLibs
+
+if test $tk_aqua = no; then
+ AC_MSG_CHECKING([for XScreenSaver support])
+ tk_oldCFlags=$CFLAGS
+ CFLAGS="$CFLAGS $XINCLUDES"
+ tk_oldLibs=$LIBS
+ LIBS="$LIBS $XLIBSW -lXss -lXext"
+ AC_TRY_LINK([
+ #include <X11/Xlib.h>
+ #include <X11/extensions/scrnsaver.h>
+ ] , [
+ XScreenSaverAllocInfo();
+ ], [
+ AC_MSG_RESULT(yes)
+ XLIBSW="$XLIBSW -lXss -lXext"
+ AC_DEFINE([HAVE_XSS])
+ ], AC_MSG_RESULT(no))
+ CFLAGS=$tk_oldCFlags
+ LIBS=$tk_oldLibs
+fi
#--------------------------------------------------------------------
# Check for freetype / fontconfig / Xft support.
#--------------------------------------------------------------------
-AC_ARG_ENABLE(xft,
- [ --enable-xft Use freetype/fontconfig/xft [--disable-xft]],
- [enable_xft=$enableval],
- [enable_xft="no"])
-
-XFT_CFLAGS=""
-XFT_LIBS=""
-if test "$enable_xft" = "yes" ; then
- AC_MSG_CHECKING([for xft configuration])
- XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || enable_xft="no"
- XFT_LIBS=`xft-config --libs 2>/dev/null` || enable_xft="no"
- if test "$enable_xft" = "no" ; then
- enable_xft=yes
- XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || enable_xft="no"
- XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || enable_xft="no"
- fi
+if test $tk_aqua = no; then
+ AC_ARG_ENABLE(xft,
+ [ --enable-xft Use freetype/fontconfig/xft [--disable-xft]],
+ [enable_xft=$enableval],
+ [enable_xft="no"])
+
+ XFT_CFLAGS=""
+ XFT_LIBS=""
if test "$enable_xft" = "yes" ; then
- AC_MSG_RESULT([ok])
+ AC_MSG_CHECKING([for xft configuration])
+ XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || enable_xft="no"
+ XFT_LIBS=`xft-config --libs 2>/dev/null` || enable_xft="no"
+ if test "$enable_xft" = "no" ; then
+ enable_xft=yes
+ XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || enable_xft="no"
+ XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || enable_xft="no"
+ fi
+ if test "$enable_xft" = "yes" ; then
+ AC_MSG_RESULT([ok])
+ else
+ AC_MSG_WARN([Can't find xft configuration])
+ fi
+ fi
+ if test $enable_xft = "yes" ; then
+ UNIX_FONT_OBJS=tkUnixRFont.o
+ AC_DEFINE(HAVE_XFT, 1, [Have we turned on XFT (antialiased fonts)?])
else
- AC_MSG_WARN([Can't find xft configuration])
+ UNIX_FONT_OBJS=tkUnixFont.o
fi
+
+ AC_SUBST(XFT_CFLAGS)
+ AC_SUBST(XFT_LIBS)
+ AC_SUBST(UNIX_FONT_OBJS)
fi
-if test $enable_xft = "yes" ; then
- UNIX_FONT_OBJS=tkUnixRFont.o
- AC_DEFINE(HAVE_XFT, 1, [Have we turned on XFT (antialiased fonts)?])
-else
- UNIX_FONT_OBJS=tkUnixFont.o
-fi
-
-AC_SUBST(XFT_CFLAGS)
-AC_SUBST(XFT_LIBS)
-AC_SUBST(UNIX_FONT_OBJS)
#--------------------------------------------------------------------
# Figure out whether "char" is unsigned. If so, set a