Mercurial > emacs
comparison configure.in @ 90732:bc10a33dd40b
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 563-582)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 177-185)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-158
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 01 Jan 2007 03:21:06 +0000 |
parents | 6588c6259dfb 86540ee6f1e4 |
children | 95d0cdf160ea |
comparison
equal
deleted
inserted
replaced
90731:a6c97c25a666 | 90732:bc10a33dd40b |
---|---|
21 dnl You should have received a copy of the GNU General Public License | 21 dnl You should have received a copy of the GNU General Public License |
22 dnl along with GNU Emacs; see the file COPYING. If not, write to the | 22 dnl along with GNU Emacs; see the file COPYING. If not, write to the |
23 dnl Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 dnl Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 dnl Boston, MA 02110-1301, USA. | 24 dnl Boston, MA 02110-1301, USA. |
25 | 25 |
26 AC_PREREQ(2.54)dnl | 26 AC_PREREQ(2.61)dnl |
27 AC_INIT(src/lisp.h) | 27 AC_INIT(src/lisp.h) |
28 AC_CONFIG_HEADER(src/config.h:src/config.in) | 28 AC_CONFIG_HEADER(src/config.h:src/config.in) |
29 | 29 |
30 dnl Support for --program-prefix, --program-suffix and | 30 dnl Support for --program-prefix, --program-suffix and |
31 dnl --program-transform-name options | 31 dnl --program-transform-name options |
267 alpha*-*-netbsd*) machine=alpha ;; | 267 alpha*-*-netbsd*) machine=alpha ;; |
268 i[3456]86-*-netbsd*) machine=intel386 ;; | 268 i[3456]86-*-netbsd*) machine=intel386 ;; |
269 m68k-*-netbsd*) | 269 m68k-*-netbsd*) |
270 # This is somewhat bogus. | 270 # This is somewhat bogus. |
271 machine=hp9000s300 ;; | 271 machine=hp9000s300 ;; |
272 powerpc-apple-netbsd*) machine=macppc ;; | |
273 mips-*-netbsd*) machine=pmax ;; | 272 mips-*-netbsd*) machine=pmax ;; |
274 mipsel-*-netbsd*) machine=pmax ;; | 273 mipsel-*-netbsd*) machine=pmax ;; |
275 mipseb-*-netbsd*) machine=pmax ;; | 274 mipseb-*-netbsd*) machine=pmax ;; |
276 ns32k-*-netbsd*) machine=ns32000 ;; | 275 ns32k-*-netbsd*) machine=ns32000 ;; |
277 powerpc-*-netbsd*) machine=macppc ;; | 276 powerpc-*-netbsd*) machine=macppc ;; |
278 sparc*-*-netbsd*) machine=sparc ;; | 277 sparc*-*-netbsd*) machine=sparc ;; |
279 vax-*-netbsd*) machine=vax ;; | 278 vax-*-netbsd*) machine=vax ;; |
280 arm-*-netbsd*) machine=arm ;; | 279 arm-*-netbsd*) machine=arm ;; |
280 x86_64-*-netbsd*) machine=amdx86-64 ;; | |
281 hppa-*-netbsd*) machine=hp800 ;; | |
282 shle-*-netbsd*) machine=sh3el ;; | |
281 esac | 283 esac |
282 ;; | 284 ;; |
283 | 285 |
284 ## OpenBSD ports | 286 ## OpenBSD ports |
285 *-*-openbsd* ) | 287 *-*-openbsd* ) |
1574 if test "X${with_pkg_config_prog}" != X; then | 1576 if test "X${with_pkg_config_prog}" != X; then |
1575 PKG_CONFIG="${with_pkg_config_prog}" | 1577 PKG_CONFIG="${with_pkg_config_prog}" |
1576 fi | 1578 fi |
1577 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) | 1579 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) |
1578 if test $HAVE_ALSA = yes; then | 1580 if test $HAVE_ALSA = yes; then |
1581 SAVE_CFLAGS="$CFLAGS" | |
1582 SAVE_LDFLAGS="$LDFLAGS" | |
1583 CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
1584 LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
1585 AC_TRY_COMPILE([#include <asoundlib.h>], [snd_lib_error_set_handler (0);], | |
1586 emacs_alsa_normal=yes, | |
1587 emacs_alsa_normal=no) | |
1588 if test "$emacs_alsa_normal" != yes; then | |
1589 AC_TRY_COMPILE([#include <alsa/asoundlib.h>], | |
1590 [snd_lib_error_set_handler (0);], | |
1591 emacs_alsa_subdir=yes, | |
1592 emacs_alsa_subdir=no) | |
1593 if test "$emacs_alsa_subdir" != yes; then | |
1594 AC_MSG_ERROR([pkg-config found alsa, but it does not compile. See config.log for error messages.]) | |
1595 fi | |
1596 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
1597 fi | |
1598 | |
1599 CFLAGS="$SAVE_CFLAGS" | |
1600 LDFLAGS="$SAVE_LDFLAGS" | |
1579 LIBSOUND="$LIBSOUND $ALSA_LIBS" | 1601 LIBSOUND="$LIBSOUND $ALSA_LIBS" |
1580 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | 1602 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
1581 AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) | 1603 AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) |
1604 AC_SUBST() | |
1582 fi | 1605 fi |
1583 AC_SUBST(CFLAGS_SOUND) | 1606 AC_SUBST(CFLAGS_SOUND) |
1584 fi | 1607 fi |
1585 | 1608 |
1586 dnl checks for header files | 1609 dnl checks for header files |
2050 AC_MSG_RESULT(before 5) | 2073 AC_MSG_RESULT(before 5) |
2051 fi | 2074 fi |
2052 fi | 2075 fi |
2053 | 2076 |
2054 HAVE_GTK=no | 2077 HAVE_GTK=no |
2078 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then | |
2079 USE_X_TOOLKIT=none | |
2080 fi | |
2055 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | 2081 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then |
2056 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then | 2082 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
2057 AC_MSG_ERROR([Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}]); | 2083 AC_MSG_ERROR([Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}]); |
2058 fi | 2084 fi |
2059 GLIB_REQUIRED=2.4 | 2085 GLIB_REQUIRED=2.4 |
2069 AC_SUBST(GTK_CFLAGS) | 2095 AC_SUBST(GTK_CFLAGS) |
2070 AC_SUBST(GTK_LIBS) | 2096 AC_SUBST(GTK_LIBS) |
2071 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | 2097 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
2072 CFLAGS="$CFLAGS $GTK_CFLAGS" | 2098 CFLAGS="$CFLAGS $GTK_CFLAGS" |
2073 LIBS="$GTK_LIBS $LIBS" | 2099 LIBS="$GTK_LIBS $LIBS" |
2100 dnl Try to compile a simple GTK program. | |
2101 GTK_COMPILES=no | |
2102 AC_CHECK_FUNCS(gtk_main, GTK_COMPILES=yes) | |
2103 if test "${GTK_COMPILES}" != "yes"; then | |
2104 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]); | |
2105 fi | |
2106 | |
2074 HAVE_GTK=yes | 2107 HAVE_GTK=yes |
2075 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) | 2108 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) |
2076 USE_X_TOOLKIT=none | 2109 USE_X_TOOLKIT=none |
2077 | 2110 |
2078 dnl GTK scrollbars resemble toolkit scrollbars a lot, so to avoid | 2111 dnl GTK scrollbars resemble toolkit scrollbars a lot, so to avoid |