diff options
| author | YAMAMOTO Mitsuharu | 2005-05-13 08:54:23 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-05-13 08:54:23 +0000 |
| commit | de0a3247ca629356262b000a0a368bcb32f70bc6 (patch) | |
| tree | 00ce638a08272a361c0da6016ca9588b93a44f3a | |
| parent | ef7c480ddf4314de7f809a2b7048afe71220f86e (diff) | |
| download | emacs-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.in | 17 |
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 |
| 1695 | fi | 1695 | fi |
| 1696 | 1696 | ||
| 1697 | HAVE_CARBON=no | ||
| 1698 | if test "${HAVE_X11}" != "yes"; then | ||
| 1699 | if test "${with_carbon}" != "no"; then | ||
| 1700 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) | ||
| 1701 | fi | ||
| 1702 | fi | ||
| 1703 | |||
| 1697 | ### Compute the unexec source name from the object name. | 1704 | ### Compute the unexec source name from the object name. |
| 1698 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | 1705 | UNEXEC_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 |
| 2159 | fi | 2169 | fi |
| 2160 | 2170 | ||
| @@ -2308,15 +2318,10 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2308 | fi | 2318 | fi |
| 2309 | fi | 2319 | fi |
| 2310 | 2320 | ||
| 2311 | ### Use Mac OS X Carbon API to implement GUI. | ||
| 2312 | HAVE_CARBON=no | ||
| 2313 | if test "${with_carbon}" != "no"; then | ||
| 2314 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) | ||
| 2315 | fi | ||
| 2316 | |||
| 2317 | dnl Check for malloc/malloc.h on darwin | 2321 | dnl Check for malloc/malloc.h on darwin |
| 2318 | AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])) | 2322 | AC_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. | ||
| 2320 | if test "${HAVE_CARBON}" = "yes"; then | 2325 | if 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 |