aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-05-13 08:54:23 +0000
committerYAMAMOTO Mitsuharu2005-05-13 08:54:23 +0000
commitde0a3247ca629356262b000a0a368bcb32f70bc6 (patch)
tree00ce638a08272a361c0da6016ca9588b93a44f3a
parentef7c480ddf4314de7f809a2b7048afe71220f86e (diff)
downloademacs-de0a3247ca629356262b000a0a368bcb32f70bc6.tar.gz
emacs-de0a3247ca629356262b000a0a368bcb32f70bc6.zip
Don't check HAVE_CARBON if HAVE_X11 is set to yes. Check HAVE_CARBON
before USE_TOOLKIT_SCROLL_BARS. Define USE_TOOLKIT_SCROLL_BARS by default if HAVE_CARBON is set to yes.
-rw-r--r--configure.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index e384ed68b5d..181b86007df 100644
--- a/configure.in
+++ b/configure.in
@@ -1694,6 +1694,13 @@ if test "${opsys}" = "hpux9shr"; then
1694 esac 1694 esac
1695fi 1695fi
1696 1696
1697HAVE_CARBON=no
1698if test "${HAVE_X11}" != "yes"; then
1699 if test "${with_carbon}" != "no"; then
1700 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
1701 fi
1702fi
1703
1697### Compute the unexec source name from the object name. 1704### Compute the unexec source name from the object name.
1698UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" 1705UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
1699 1706
@@ -2155,6 +2162,9 @@ if test "${with_toolkit_scroll_bars}" != "no"; then
2155 elif test "${HAVE_GTK}" = "yes"; then 2162 elif test "${HAVE_GTK}" = "yes"; then
2156 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) 2163 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
2157 USE_TOOLKIT_SCROLL_BARS=yes 2164 USE_TOOLKIT_SCROLL_BARS=yes
2165 elif test "${HAVE_CARBON}" = "yes"; then
2166 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
2167 USE_TOOLKIT_SCROLL_BARS=yes
2158 fi 2168 fi
2159fi 2169fi
2160 2170
@@ -2308,15 +2318,10 @@ if test "${HAVE_X11}" = "yes"; then
2308 fi 2318 fi
2309fi 2319fi
2310 2320
2311### Use Mac OS X Carbon API to implement GUI.
2312HAVE_CARBON=no
2313if test "${with_carbon}" != "no"; then
2314 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
2315fi
2316
2317dnl Check for malloc/malloc.h on darwin 2321dnl Check for malloc/malloc.h on darwin
2318AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])) 2322AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.]))
2319 2323
2324### Use Mac OS X Carbon API to implement GUI.
2320if test "${HAVE_CARBON}" = "yes"; then 2325if test "${HAVE_CARBON}" = "yes"; then
2321 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) 2326 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.])
2322 window_system=mac 2327 window_system=mac